compositor-drm: Hide hw cursors on vt switch

This commit is contained in:
Kristian Høgsberg 2011-05-06 15:38:28 -04:00
parent 9396fc515b
commit d8e181bd3f

View file

@ -631,6 +631,7 @@ static void
vt_func(struct wlsc_compositor *compositor, int event)
{
struct drm_compositor *ec = (struct drm_compositor *) compositor;
struct wlsc_output *output;
switch (event) {
case TTY_ENTER_VT:
@ -643,6 +644,10 @@ vt_func(struct wlsc_compositor *compositor, int event)
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);
break;
};
}