]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove macOS drop-shadows on some frames (bug#28512)
authorAlan Third <alan@idiocy.org>
Tue, 28 Dec 2021 11:36:46 +0000 (11:36 +0000)
committerAlan Third <alan@idiocy.org>
Tue, 4 Jan 2022 10:55:12 +0000 (10:55 +0000)
* src/nsterm.m ([EmacsWindow setParentChildRelationships]): Remove
shadows on undecorated child frames.

src/nsterm.m

index 2318f7beab357658133acba533917ff945134e5c..41c311e04dc08fe0f1d30b5f4dba29b7ef1ec42a 100644 (file)
@@ -8435,6 +8435,15 @@ not_in_argv (NSString *arg)
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
   [ourView updateCollectionBehavior];
 #endif
+
+  /* Child frames are often used in ways that may mean they should
+     "disappear" into the contents of the parent frame.  macOs's
+     drop-shadows break this effect, so remove them on undecorated
+     child frames.  */
+  if (parentFrame && FRAME_UNDECORATED (ourFrame))
+    [self setHasShadow:NO];
+  else
+    [self setHasShadow:YES];
 #endif