Subject: bug#64809: 29.1; Initial frame is wrong size when dimensions specified in init file

From: Po Lu <[email-masked]>
Date: Mon, 24 Jul 2023 20:05:58 +0800

Eli Zaretskii <[email-masked]> writes:

>> Date: Sun, 23 Jul 2023 15:02:45 -0500
>> From: David Fiander <[email-masked]>
>> 
>> Using the below init file, and running emacs from the command line, the
>> initial frame seems to appear with the correct size but then shrinks
>> down.
>
> Shrinks down to what size?
>
>> The frame created by pressing C-x 5 2 is the correct size.
>> 
>> ;;; -*- lexical-binding: t; coding: utf-8; -*-
>> 
>> (set-face-attribute 'default nil :family "Noto Sans Mono" :weight 
>> 'regular :height 160)
>> 
>> ;; (set-frame-height nil 26)
>> ;; (set-frame-width nil 90)
>> ;; (push '(height . 26) default-frame-alist)
>> ;; (push '(width . 90) default-frame-alist)
>
> Po Lu, any ideas?
>
> Did we change anything in this regard since Emacs 28?
>
> Thanks.

David, are you using KWin by any chance?  Along with a GTK+ build of
Emacs?