mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 19:43:38 +00:00
compositor-drm: Hide hw cursors on vt switch
This commit is contained in:
parent
9396fc515b
commit
d8e181bd3f
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue