wayland: Mark opaque_region as dirty on hide
authorDavid Edmundson <davidedmundson@kde.org>
Fri, 1 Oct 2021 12:28:00 +0000 (13:28 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000 (17:52 -0400)
Otherwise if we hide and show a window we recreate a new surface,
breaking the compositor's association, but potentially not resend this
data for the new surface.
This matches what we do for input_region.

gdk/wayland/gdksurface-wayland.c

index 84ec54a335db36839e0db38deb3e8e4ca90c4e6a..bfc0a0cc04423675ef6fb2c468b13ef138979005 100644 (file)
@@ -3009,6 +3009,7 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
 
   impl->has_uncommitted_ack_configure = FALSE;
   impl->input_region_dirty = TRUE;
+  impl->opaque_region_dirty = TRUE;
 
   unset_transient_for_exported (surface);