[gtk: 1/2] wayland: Mark opaque_region as dirty on hide




commit dc503897b1cba4aa68ac899736017715fced0536
Author: David Edmundson <davidedmundson kde org>
Date:   Fri Oct 1 13:28:00 2021 +0100

    wayland: Mark opaque_region as dirty on hide
    
    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 | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 0a02cede91..21b8be7f0c 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -3004,6 +3004,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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]