Subject: bug#46827: Broken initial size of GTK3 frame

From: martin rudalics <[email-masked]>
Date: Tue, 2 Mar 2021 10:07:02 +0100

> So the problem still seems that redisplay misses a pending
 > window change.

Confirmed meanwhile.  The attached patch fixes the problem here.  Eli
will tell use whether we can put that do_pending_window_change in some
suitable safe place within redisplay_internal.

martin
diff --git a/src/xdisp.c b/src/xdisp.c
index cac3195170..8bbcc2b7ec 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15500,6 +15500,8 @@ redisplay_internal (void)
   consider_all_windows_p = (update_mode_lines
 			    || windows_or_buffers_changed);

+  do_pending_window_change (true);
+
 #define AINC(a,i)							\
   {									\
     Lisp_Object entry = Fgethash (make_fixnum (i), a, make_fixnum (0));	\