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>
dev
Matt Roper 14 years ago committed by Kristian Høgsberg
parent c0827fd9d6
commit 045037e005
  1. 2
      compositor/compositor-drm.c

@ -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…
Cancel
Save