[gtk/gtk-3-24: 2/4] wayland: Always update unconfigured size



commit 2e5f344e3cf5495b7dc8f9d43135cdb82c1369f9
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Apr 6 12:05:58 2020 +0200

    wayland: Always update unconfigured size
    
    If the window size didn't change, we should still update the
    unconfigured size as the window size might not be up to date.

 gdk/wayland/gdkwindow-wayland.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 34ac43053b..8e2e0236d4 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1145,10 +1145,6 @@ gdk_wayland_window_maybe_configure (GdkWindow *window,
   gboolean is_xdg_popup;
   gboolean is_visible;
 
-  if (window->width == width &&
-      window->height == height &&
-      impl->scale == scale)
-    return;
 
   if (needs_initial_configure (window) &&
       !impl->initial_configure_received)
@@ -1158,6 +1154,11 @@ gdk_wayland_window_maybe_configure (GdkWindow *window,
       return;
     }
 
+  if (window->width == width &&
+      window->height == height &&
+      impl->scale == scale)
+    return;
+
   /* For xdg_popup using an xdg_positioner, there is a race condition if
    * the application tries to change the size after it's mapped, but before
    * the initial configure is received, so hide and show the surface again


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