diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-12-04 18:35:01 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 20:37:29 +0100 |
commit | 351d88f7ae1492048988122b7f0d4a8fc2db9294 (patch) | |
tree | a6ad5040d87b5452a245c540ae0df6071f621560 | |
parent | dfb7ab3352109f3a3313c0f6b20754b3d9eab2ea (diff) | |
download | gtk+-351d88f7ae1492048988122b7f0d4a8fc2db9294.tar.gz |
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.
-rw-r--r-- | gdk/wayland/gdksurface-wayland.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |