[gtk/gtk-3-24: 1/3] wayland: Set unconfigured size on impl construction



commit 92aa63c2034b8ddad53cca50cf945c9c9b7508e1
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Apr 6 21:12:09 2020 +0200

    wayland: Set unconfigured size on impl construction
    
    Who knows who might use this for something, so lets make the
    unconfigured size slightly more predictable. This doesn't fix anything
    known to be broken though.

 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 850247366c..cbd9412570 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -749,6 +749,8 @@ _gdk_wayland_display_create_window_impl (GdkDisplay    *display,
 
   impl = g_object_new (GDK_TYPE_WINDOW_IMPL_WAYLAND, NULL);
   window->impl = GDK_WINDOW_IMPL (impl);
+  impl->unconfigured_width = window->width;
+  impl->unconfigured_height = window->height;
   impl->wrapper = GDK_WINDOW (window);
   impl->shortcuts_inhibitors = g_hash_table_new (NULL, NULL);
   impl->using_csd = TRUE;


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