aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2025-07-22 13:44:34 +0200
committerGerd Möllmann2025-07-23 06:26:45 +0200
commitf177537f701fbd8fd2997cf15cbd4733f9ca1127 (patch)
tree0b72e113162a1832c29e2c1e191177ec560febdf /src
parent5a7a12d7920a94edea175871235c5013f0c73e3c (diff)
downloademacs-f177537f701fbd8fd2997cf15cbd4733f9ca1127.tar.gz
emacs-f177537f701fbd8fd2997cf15cbd4733f9ca1127.zip
NS: Use different window collection behavior for tooltips (bug#73037)
* src/nsterm.m ([EmacsView updateCollectionBehavior]): Use NSWindowCollectionBehaviorFullScreenAuxiliary for non-native tooltips which are not child frames.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 003aadb9782..0b19d011151 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8574,12 +8574,13 @@ ns_in_echo_area (void)
8574 NSWindowCollectionBehavior b = [win collectionBehavior]; 8574 NSWindowCollectionBehavior b = [win collectionBehavior];
8575 if (ns_use_native_fullscreen) 8575 if (ns_use_native_fullscreen)
8576 { 8576 {
8577 if (FRAME_PARENT_FRAME (emacsframe)) 8577 if (FRAME_PARENT_FRAME (emacsframe)
8578 || FRAME_TOOLTIP_P (emacsframe))
8578 { 8579 {
8579 b &= ~NSWindowCollectionBehaviorFullScreenPrimary; 8580 b &= ~NSWindowCollectionBehaviorFullScreenPrimary;
8580 b |= NSWindowCollectionBehaviorFullScreenAuxiliary; 8581 b |= NSWindowCollectionBehaviorFullScreenAuxiliary;
8581 } 8582 }
8582 else 8583 else
8583 { 8584 {
8584 b |= NSWindowCollectionBehaviorFullScreenPrimary; 8585 b |= NSWindowCollectionBehaviorFullScreenPrimary;
8585 b &= ~NSWindowCollectionBehaviorFullScreenAuxiliary; 8586 b &= ~NSWindowCollectionBehaviorFullScreenAuxiliary;