wayland/cursor-surface: Update sprite when attaching NULL
Attaching a NULL buffer should hide the cursor sprite. In these cases, we we'll have neither surface nor buffer damage, so also update when we just attached a NULL buffer. Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/630
This commit is contained in:
parent
5eac1d696d
commit
36b361617d
@ -170,8 +170,9 @@ meta_wayland_cursor_surface_commit (MetaWaylandSurfaceRole *surface_role,
|
||||
wl_list_init (&pending->frame_callback_list);
|
||||
|
||||
if (pending->newly_attached &&
|
||||
(!cairo_region_is_empty (pending->surface_damage) ||
|
||||
!cairo_region_is_empty (pending->buffer_damage)))
|
||||
((!cairo_region_is_empty (pending->surface_damage) ||
|
||||
!cairo_region_is_empty (pending->buffer_damage)) ||
|
||||
!priv->buffer))
|
||||
update_cursor_sprite_texture (META_WAYLAND_CURSOR_SURFACE (surface_role));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user