[gtk: 64/88] wayland/surface: Clear shadow width when hiding




commit 351d88f7ae1492048988122b7f0d4a8fc2db9294
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Dec 4 18:35:01 2020 +0100

    wayland/surface: Clear shadow width when hiding
    
    Not doing this means the next time the same surface is shown, if the
    shadow size wasn't changed, it wouldn't be sent to the compositor, which
    then would result in compositor deriving its own window geometry which
    would include the shadow margin.
    
    This fixes an issue where the file chooser dialog would grow each time
    it opened.

 gdk/wayland/gdksurface-wayland.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index b8a1d79f81..d5e777638c 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2957,6 +2957,8 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
 
   unset_transient_for_exported (surface);
 
+  impl->last_sent_window_geometry = (GdkRectangle) { 0 };
+
   _gdk_wayland_surface_clear_saved_size (surface);
   impl->mapped = FALSE;
 }


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