]> git.eshelyaron.com Git - emacs.git/commitdiff
Do child frame shortcut only on Cocoa (bug#78616)
authorGerd Möllmann <gerd.moellmann@gmail.com>
Wed, 28 May 2025 10:56:42 +0000 (12:56 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 19:52:58 +0000 (21:52 +0200)
* src/nsterm.m ([EmacsWindow constrainFrameRect:toScreen:]):
Return early for child frames only on Cocoa.

(cherry picked from commit 6279a9e8ef701c2eef8c198b7b26f235bb41f2b0)

src/nsterm.m

index f822481e2e28617e07120c7e18b36d3d5b12d2f9..4884a060c3a956277a77c45ede15b05b8c890921 100644 (file)
@@ -9801,11 +9801,11 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c)
   /* Don't do anything for child frames because that leads to weird
      child frame placement in some cases involving Dock placement and
      Dock Hiding.  */
+#ifdef NS_IMPL_COCOA
   struct frame *f = ((EmacsView *) [self delegate])->emacsframe;
   if (FRAME_PARENT_FRAME (f))
     return frameRect;
 
-#ifdef NS_IMPL_COCOA
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1090
   // If separate spaces is on, it is like each screen is independent.  There is
   // no spanning of frames across screens.