Turn off hardware cursors on VT switch before dropping DRM master.
The DRM cursor ioctl requires DRM master. We shouldn't drop master until after we're done turning off the hardware cursors for a VT switch. Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
This commit is contained in:
parent
c0827fd9d6
commit
045037e005
@ -745,11 +745,11 @@ vt_func(struct wlsc_compositor *compositor, int event)
|
||||
case TTY_LEAVE_VT:
|
||||
compositor->focus = 0;
|
||||
compositor->state = WLSC_COMPOSITOR_SLEEPING;
|
||||
drmDropMaster(ec->drm.fd);
|
||||
|
||||
wl_list_for_each(output, &ec->base.output_list, link)
|
||||
drm_output_set_cursor(output, NULL);
|
||||
|
||||
drmDropMaster(ec->drm.fd);
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user