[gtk/resizing-fixes] window: Allocate on map



commit e3984994e62b960dcc9c26e707390fec32999cd5
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 7 22:53:00 2020 -0400

    window: Allocate on map
    
    We normally wait for the surface ::size-changed signal,
    but then we only queue a resize, which is not sufficient
    on map - we need to have an allocation by the time start
    moving focus around in show. So, call check_resize()
    right away.

 gtk/gtkwindow.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 90f3d8d6aa..4a1fb16824 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3755,6 +3755,7 @@ gtk_window_map (GtkWidget *widget)
     gtk_widget_map (priv->title_box);
 
   gtk_window_present_toplevel (window);
+  gtk_window_native_check_resize (GTK_NATIVE (window));
 
   if (priv->minimize_initially)
     gdk_toplevel_minimize (GDK_TOPLEVEL (priv->surface));


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