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:
Matt Roper
2011-08-26 17:36:49 -07:00
committed by Kristian Høgsberg
parent c0827fd9d6
commit 045037e005
+1 -1
View File
@@ -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;
};
}