[gtk/gtk-3-24: 1/3] Do not require an initial configure for custom Wayland surfaces



commit 12fc9a45efcbb546eb7de13c5c4d3183f2f5a3b8
Author: William Wold <wm wmww sh>
Date:   Sun Apr 5 05:26:24 2020 -0400

    Do not require an initial configure for custom Wayland surfaces
    
    There is no way for custom Wayland surfaces to get configure events, so an
    initial configure event should not be required to resize a custom surface.
    
    Fixes #2578.

 gdk/wayland/gdkwindow-wayland.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index eba8361b21..5f39c5771c 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1087,6 +1087,8 @@ needs_initial_configure (GdkWindow *window)
 
   if (impl->display_server.wl_subsurface)
     return FALSE;
+  else if (impl->use_custom_surface)
+    return FALSE;
   else if (is_realized_toplevel (window))
     return TRUE;
   else if (is_realized_popup (window))


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