aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Möllmann2025-03-09 11:47:35 +0100
committerGerd Möllmann2025-03-09 11:49:27 +0100
commitba20f73d8e0173a37fbdd2efe72a7a3b0d62dfa5 (patch)
treea2d67962fcfa84487743715eaeeb1c7c7d163202
parent41c1c6ffac3bc3db9818ed8e0cc857c72b06d806 (diff)
downloademacs-ba20f73d8e0173a37fbdd2efe72a7a3b0d62dfa5.tar.gz
emacs-ba20f73d8e0173a37fbdd2efe72a7a3b0d62dfa5.zip
macOS: Don't constrainFrameRect for child frames
* src/nsterm.m ([EmacsWindow constrainFrameRect:toScreen:]): Don't do anything for child frames.
-rw-r--r--src/nsterm.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index f6fd43a1889..46bb3f5dd7a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9790,6 +9790,13 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c)
9790 NSTRACE ("[EmacsWindow constrainFrameRect:" NSTRACE_FMT_RECT " toScreen:]", 9790 NSTRACE ("[EmacsWindow constrainFrameRect:" NSTRACE_FMT_RECT " toScreen:]",
9791 NSTRACE_ARG_RECT (frameRect)); 9791 NSTRACE_ARG_RECT (frameRect));
9792 9792
9793 /* Don't do anything for child frames because that leads to weird
9794 child frame placement in some cases involving Dock placement and
9795 Dock Hiding. */
9796 struct frame *f = ((EmacsView *) [self delegate])->emacsframe;
9797 if (FRAME_PARENT_FRAME (f))
9798 return frameRect;
9799
9793#ifdef NS_IMPL_COCOA 9800#ifdef NS_IMPL_COCOA
9794#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1090 9801#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1090
9795 // If separate spaces is on, it is like each screen is independent. There is 9802 // If separate spaces is on, it is like each screen is independent. There is