From: Alan Third <alan@idiocy.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: scratch/ns/refactor 06d9e72 5/6: Move NS port toolbar handling to the window
Date: Wed, 23 Jun 2021 15:27:42 +0100 [thread overview]
Message-ID: <YNNE3lc8YN4YqoVw@breton.holly.idiocy.org> (raw)
In-Reply-To: <87h7hosqob.fsf@gmail.com>
On Wed, Jun 23, 2021 at 02:37:08PM +0200, Robert Pluim wrote:
> >>>>> On Sun, 20 Jun 2021 11:56:28 -0400 (EDT), alan@idiocy.org (Alan Third) said:
>
> Alan> branch: scratch/ns/refactor
> Alan> commit 06d9e723f79390eb6151f521d154b47e1ffa943e
> Alan> Author: Alan Third <alan@idiocy.org>
> Alan> Commit: Alan Third <alan@idiocy.org>
>
> Alan> Move NS port toolbar handling to the window
>
> Hi Alan, I tried this branch. I did
Thanks for trying it.
> emacs -Q
> (tool-bar-mode -1)
> C-x 5 2
>
> The second frame has the tool-bar disabled, but unlike master the
> frame height is greater than the initial frame, and the frame title is
> bigger as well, as if its height had not been adjusted after removing
> the tool-bar.
What's happening is that the toolbar is set to be visible, but it has
nothing in it, so it shrinks to the toolbar's minimum height.
Can you please try the following, I think it should sort it:
modified src/nsmenu.m
@@ -1089,10 +1089,10 @@ - (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item
#undef TOOLPROP
}
- if (![toolbar isVisible])
+ if ([toolbar isVisible] != FRAME_EXTERNAL_TOOL_BAR (f))
{
f->output_data.ns->in_animation = 1;
- [toolbar setVisible: YES];
+ [toolbar setVisible: FRAME_EXTERNAL_TOOL_BAR (f)];
f->output_data.ns->in_animation = 0;
}
--
Alan Third
next prev parent reply other threads:[~2021-06-23 14:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210620155625.12886.44156@vcs0.savannah.gnu.org>
[not found] ` <20210620155629.258B620B76@vcs0.savannah.gnu.org>
2021-06-23 12:37 ` scratch/ns/refactor 06d9e72 5/6: Move NS port toolbar handling to the window Robert Pluim
2021-06-23 14:27 ` Alan Third [this message]
2021-06-23 14:57 ` Robert Pluim
2021-06-23 16:06 ` Alan Third
2021-06-24 13:58 ` Robert Pluim
2021-06-24 14:05 ` Alan Third
2021-06-24 14:07 ` Alan Third
2021-06-24 14:15 ` Robert Pluim
2021-06-24 14:16 ` Alan Third
2021-06-24 14:32 ` Alan Third
2021-06-24 14:59 ` Robert Pluim
2021-06-24 14:11 ` Robert Pluim
[not found] ` <20210620155628.D095320B76@vcs0.savannah.gnu.org>
2021-06-23 13:33 ` scratch/ns/refactor cc9dbaf 4/6: Fix macOS live resize drawing Robert Pluim
2021-06-23 14:05 ` Alan Third
2021-06-23 14:32 ` Robert Pluim
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YNNE3lc8YN4YqoVw@breton.holly.idiocy.org \
--to=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=rpluim@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).