GNU bug report logs - #61710
30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame

Previous Next

Package: emacs;

Reported by: Alynx Zhou <alynx.zhou <at> suse.com>

Date: Wed, 22 Feb 2023 14:56:01 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Alynx Zhou <alynx.zhou <at> suse.com>
To: 61710 <at> debbugs.gnu.org
Subject: bug#61710: 30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame
Date: Fri, 24 Feb 2023 18:21:44 +0800
So, after taking another afternoon on commenting code or adding 
`message`, the problem is located at the last 2 lines of 
`server-switch-buffer`:

```
    (when server-raise-frame
      (select-frame-set-input-focus (window-frame)))))
```

When I set `server-raise-frame` to `nil`, the newly created frame is 
maximized properly, I am not sure why `select-frame-set-input-focus` 
causes such a bug, but I guess it is related on how PGTK handles focus 
on Wayland (actually I think it should do nothing, because Wayland 
clients are not allowed to grab focus explicitly, but there must be some 
interesting things).

I'd like to find out what's wrong with it tomorrow, but at least I have 
a workaround now!

Alynx




This bug report was last modified 2 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.