mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -05:00
Hide wayland cursor when X11 compositor loses focus
This commit is contained in:
parent
554a131b29
commit
86e0989673
4 changed files with 22 additions and 6 deletions
|
|
@ -375,8 +375,9 @@ wlsc_output_repaint(struct wlsc_output *output)
|
|||
wl_list_for_each(es, &ec->surface_list, link)
|
||||
wlsc_surface_draw(es, output);
|
||||
|
||||
wl_list_for_each(eid, &ec->input_device_list, link)
|
||||
wlsc_surface_draw(eid->sprite, output);
|
||||
if (ec->focus)
|
||||
wl_list_for_each(eid, &ec->input_device_list, link)
|
||||
wlsc_surface_draw(eid->sprite, output);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -398,7 +399,7 @@ repaint(void *data)
|
|||
ec->repaint_needed = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
wlsc_compositor_schedule_repaint(struct wlsc_compositor *compositor)
|
||||
{
|
||||
compositor->repaint_needed = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue