compositor-drm: Hide hw cursors on vt switch

dev
Kristian Høgsberg 14 years ago
parent 9396fc515b
commit d8e181bd3f
  1. 5
      compositor/compositor-drm.c

@ -631,6 +631,7 @@ static void
vt_func(struct wlsc_compositor *compositor, int event) vt_func(struct wlsc_compositor *compositor, int event)
{ {
struct drm_compositor *ec = (struct drm_compositor *) compositor; struct drm_compositor *ec = (struct drm_compositor *) compositor;
struct wlsc_output *output;
switch (event) { switch (event) {
case TTY_ENTER_VT: case TTY_ENTER_VT:
@ -643,6 +644,10 @@ vt_func(struct wlsc_compositor *compositor, int event)
compositor->focus = 0; compositor->focus = 0;
compositor->state = WLSC_COMPOSITOR_SLEEPING; compositor->state = WLSC_COMPOSITOR_SLEEPING;
drmDropMaster(ec->drm.fd); drmDropMaster(ec->drm.fd);
wl_list_for_each(output, &ec->base.output_list, link)
drm_output_set_cursor(output, NULL);
break; break;
}; };
} }

Loading…
Cancel
Save