aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2021-12-28 11:36:46 +0000
committerAlan Third2022-01-04 10:55:12 +0000
commit2d4b2e296b5c13a8b8481e7c0d0c26f52d2de257 (patch)
treee8213c90f2a3b883dde8eb989a6b76c845ee1bc0 /src
parent3e247bd34c9dcd6300140efe4534b1f3a7bdc776 (diff)
downloademacs-2d4b2e296b5c13a8b8481e7c0d0c26f52d2de257.tar.gz
emacs-2d4b2e296b5c13a8b8481e7c0d0c26f52d2de257.zip
Remove macOS drop-shadows on some frames (bug#28512)
* src/nsterm.m ([EmacsWindow setParentChildRelationships]): Remove shadows on undecorated child frames.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 2318f7beab3..41c311e04dc 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8435,6 +8435,15 @@ not_in_argv (NSString *arg)
8435#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 8435#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
8436 [ourView updateCollectionBehavior]; 8436 [ourView updateCollectionBehavior];
8437#endif 8437#endif
8438
8439 /* Child frames are often used in ways that may mean they should
8440 "disappear" into the contents of the parent frame. macOs's
8441 drop-shadows break this effect, so remove them on undecorated
8442 child frames. */
8443 if (parentFrame && FRAME_UNDECORATED (ourFrame))
8444 [self setHasShadow:NO];
8445 else
8446 [self setHasShadow:YES];
8438#endif 8447#endif
8439 8448
8440 8449