From: Alan Third <alan@idiocy.org>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 28512-done@debbugs.gnu.org
Subject: bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly
Date: Tue, 28 Dec 2021 11:43:00 +0000 [thread overview]
Message-ID: <Ycr4RLtsU5T1enLM@idiocy.org> (raw)
In-Reply-To: <CAHyO48xdpiPQPQgY1CF3NTn6HjKFozLJ2iej_uC5OJnLFwWs+A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
On Thu, Dec 23, 2021 at 01:19:34PM -0500, Aaron Jensen wrote:
> On Thu, Dec 23, 2021 at 11:09 AM Alan Third <alan@idiocy.org> wrote:
> > Looks like we can set hasShadow to NO. Maybe we want to do that to
> > undecorated child frames, or something?
>
> That's probably reasonable. I like it for emacs-mini-frame, but having
> the shadows on company posframe is silly, so I'm fine not having it
> for anything.
Please try the attached, it's completely untested.
--
Alan Third
[-- Attachment #2: 0001-Remove-macOS-drop-shadows-on-some-frames-bug-28512.patch --]
[-- Type: text/x-diff, Size: 1019 bytes --]
From 0b9c068ae1186b0831495d82f5a7199da5f8401a Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Tue, 28 Dec 2021 11:36:46 +0000
Subject: [PATCH] Remove macOS drop-shadows on some frames (bug#28512)
* src/nsterm.m ([EmacsWindow setParentChildRelationships]): Remove
shadows on undecorated child frames.
---
src/nsterm.m | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index f79e271a98..6178dd80bb 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8435,6 +8435,15 @@ - (void)setParentChildRelationships
#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
--
2.33.0
next prev parent reply other threads:[~2021-12-28 11:43 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 15:10 bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly Aaron Jensen
2017-09-19 15:35 ` Aaron Jensen
2017-09-19 21:34 ` Alan Third
2017-09-19 21:44 ` Aaron Jensen
2017-09-23 14:31 ` Aaron Jensen
2017-09-23 19:11 ` Alan Third
2017-09-23 21:35 ` Aaron Jensen
2017-09-24 11:27 ` Alan Third
2017-09-24 15:43 ` Aaron Jensen
2017-09-24 21:05 ` Alan Third
2017-09-25 0:39 ` Aaron Jensen
2017-09-25 10:13 ` Alan Third
2017-09-25 15:18 ` Aaron Jensen
2017-09-25 16:33 ` Alan Third
2017-09-25 17:02 ` Aaron Jensen
2017-10-14 21:47 ` Aaron Jensen
2017-10-16 10:01 ` Alan Third
2017-10-16 12:49 ` Aaron Jensen
2017-10-16 20:46 ` Alan Third
2017-10-17 2:50 ` Aaron Jensen
2017-10-17 8:58 ` Alan Third
2017-10-18 16:08 ` Aaron Jensen
2017-10-18 16:12 ` Aaron Jensen
2017-10-18 19:32 ` Alan Third
2017-10-18 19:50 ` Alan Third
2017-10-19 1:00 ` Aaron Jensen
2021-07-25 11:17 ` Alan Third
2021-07-25 17:06 ` Aaron Jensen
2021-12-22 20:52 ` Alan Third
2021-12-23 15:20 ` Aaron Jensen
2021-12-23 16:09 ` Alan Third
2021-12-23 18:19 ` Aaron Jensen
2021-12-28 11:43 ` Alan Third [this message]
2021-12-28 16:18 ` Aaron Jensen
2022-01-04 10:58 ` Alan Third
2017-10-17 8:59 ` martin rudalics
2017-10-17 16:06 ` Aaron Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ycr4RLtsU5T1enLM@idiocy.org \
--to=alan@idiocy.org \
--cc=28512-done@debbugs.gnu.org \
--cc=aaronjensen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.