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

From: martin rudalics <[email-masked]>
Date: Tue, 27 Apr 2021 10:23:08 +0200

tags 46827 fixed
close 46827 28.1
quit

 > With a GTK3 build I start Emacs with the following initial file
 > contents:
 >
 > (customize-set-variable
 >   'default-frame-alist
 >   '((cursor-color . "red3")
 >     (width . 80)
 >     (height . 32)))
 >
 > Here this results in a frame that is 36 lines high, has a root window of
 > 31 lines and a minibuffer window of 1 line.  The remaining four lines at
 > the bottom of the frame are (more or less) empty.

As Robert and Stephen have independently observed, this is a Heisenbug.
It's due to to the fact that WM notifications about new frame sizes may
be processed earlier or later.  I tried to fix that behavior in commit
a190b4cfd8b6f42a91678ac7292e1cceccd168e7 by having adjust_frame_size
pick up such notifications on the fly and am closing this bug.

Thanks, martin