From: Aaron Jensen Date: Sun, 17 Nov 2024 04:54:59 +0000 (-0800) Subject: Fix NS non-native fullscreen on initial frame load (bug#59790) X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~246 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03ae07291e85fd353595806c3ce1ad3315c47649;p=emacs.git Fix NS non-native fullscreen on initial frame load (bug#59790) * src/nsterm.m ([EmacsView toggleFullScreen:]): Reset fs_is_native --- diff --git a/src/nsterm.m b/src/nsterm.m index 97b829d0e4c..e311e3654e8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8522,6 +8522,11 @@ ns_in_echo_area (void) NSTRACE ("[EmacsView toggleFullScreen:]"); + /* Reset fs_is_native to value of ns-use-native-full-screen if not + fullscreen already */ + if (fs_state != FULLSCREEN_BOTH) + fs_is_native = ns_use_native_fullscreen; + if (fs_is_native) { #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1070