GNU bug report logs - #59790
30.0.50; ns-use-native-fullscreen is not respected for first use of initial-frame-alist

Previous Next

Package: emacs;

Reported by: Sean Farley <sean <at> farley.io>

Date: Sat, 3 Dec 2022 02:46:02 UTC

Severity: normal

Found in version 30.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: sean <at> farley.io, 59790 <at> debbugs.gnu.org
Subject: bug#59790: 30.0.50; ns-use-native-fullscreen is not respected for first use of initial-frame-alist
Date: Sun, 17 Nov 2024 00:00:07 -0500
[Message part 1 (text/plain, inline)]
​The bugged behavior is that `ns-use-native-fullscreen' set to nil is not read
when launching emacs.


The attached patch should fix this. The problem is that when the frame is
made, the current value of ns-use-native-fullscreen is copied to a variable
and that's only reset when the frame goes from fullscreen to windowed. I
believe the original intent was to ensure that the mode could not change
while the window was fullscreen already.

This resets the value of fs_is_native if the frame is not already
fullscreen, which allows it to respect the value at the time of the first
fullscreen.

Without this, the only way to get the behavior that Sean is expecting is to
set ns-use-native-fullscreen in early-init, which should not be necessary.
[Message part 2 (text/html, inline)]
[0001-src-nsterm.m-EmacsView-toggleFullScreen-Reset-fs_is_.patch (application/octet-stream, attachment)]

This bug report was last modified 174 days ago.

Previous Next


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