all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Question about child frames + menu bar
Date: Tue, 17 Sep 2024 12:47:24 +0200	[thread overview]
Message-ID: <m2a5g6imkj.fsf@pro2.fritz.box> (raw)
In-Reply-To: <082cd34e-0b45-4376-a6db-eee7e016bb4a@gmx.at> (martin rudalics's message of "Tue, 17 Sep 2024 12:20:29 +0200")

martin rudalics <rudalics@gmx.at> writes:

>> Do you perhaps remember what this change was about? I read the bug that
>> the commit message references but couldn't figure out how this bug is
>> related. Or, maybe, is there something special about menu bars on child
>> frames, like they may not have a menu bar, or something?
>
> As far as this change for the selected frame case
>
> -      update_menu_bar (sf, true, false);
> +
> +      if (!FRAME_PARENT_FRAME (sf))
> +	update_menu_bar (sf, true, false);
>
> is concerned, I can only guess that when I tried to fix the bug above I
> noticed that we did call update_menu_bar for the case that the selected
> frame is a child frame and tried to avoid that.  The rationale was that
> when I implemented child frames, I noticed that menu bars don't work
> with child frames under X while they worked well on MS Windows.  Now at
> that time there was a strict policy that we were not allowed to
> implement features that worked on non-free systems only.  So I switched
> off menu bars in child frames everywhere and made the change above to be
> on the safe side.

Thanks, that explains it, I guess, although on macOS child frames seem
to support menus, heaven knows how that works.

> If you want to implement menu bars on TTY child frames, you probably
> will have to special case that here and maybe in other places as well.

Hm, not sure what I should do.

On one hand, I could suppress the menu bar on chlid frames in some way,
which would hopefully be easy (haven't looked, but maybe not accepting
menu-bar-lines changes to non-zero.

Or I could make the condition "!PARENT_FRAME || on tty" plus fix the
menu position bug. Should also not be too difficult I guess, but a bit
more work.

Any preferences, anyone?



  reply	other threads:[~2024-09-17 10:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-17  7:42 Question about child frames + menu bar Gerd Möllmann
2024-09-17 10:20 ` martin rudalics
2024-09-17 10:47   ` Gerd Möllmann [this message]
2024-09-17 13:25     ` Eli Zaretskii
2024-09-17 14:49       ` Gerd Möllmann

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=m2a5g6imkj.fsf@pro2.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.