summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2021-10-01 13:28:00 +0100
committerDavid Edmundson <kde@davidedmundson.co.uk>2021-10-11 12:34:53 +0100
commitdc503897b1cba4aa68ac899736017715fced0536 (patch)
treeab15996b62219aaf5d909628ac314ed16f3a4be4 /gdk
parent49a64da7ec596631b1c1a52f87b9f310fffc5613 (diff)
downloadgtk+-dc503897b1cba4aa68ac899736017715fced0536.tar.gz
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.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/wayland/gdksurface-wayland.c1
1 files changed, 1 insertions, 0 deletions
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);