[gtk: 65/88] wayland/surface: Reset last sent min/max size when hiding




commit 8396bdb759543442c6bbb9e5b0f4ebd7c26a0fce
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Dec 4 18:39:22 2020 +0100

    wayland/surface: Reset last sent min/max size when hiding
    
    As with the window geometry, the last sent min/max values must be reset
    so they are sent again next time the surface is shown.

 gdk/wayland/gdksurface-wayland.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index d5e777638c..6ad40c39cd 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2958,6 +2958,10 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
   unset_transient_for_exported (surface);
 
   impl->last_sent_window_geometry = (GdkRectangle) { 0 };
+  impl->last_sent_min_width = 0;
+  impl->last_sent_min_height = 0;
+  impl->last_sent_max_width = 0;
+  impl->last_sent_max_height = 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]