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




commit 8ce83d03afa8baf28b69e9bf86be362a82602109
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..d9620cd586 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_widget_ensure_allocate (widget);
 
   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]