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 minibuffer and child frames (Posframe)
Date: Thu, 03 Oct 2024 09:35:56 +0200 [thread overview]
Message-ID: <m2iku9myeb.fsf@MacBookPro.fritz.box> (raw)
In-Reply-To: <m2ttdus5mj.fsf@MacBookPro.fritz.box> ("Gerd Möllmann"'s message of "Wed, 02 Oct 2024 20:48:36 +0200")
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> martin rudalics <rudalics@gmx.at> writes:
>
>>>> The modeline of the "Completions* window seems to have the same
>>>> background as the modeline of the normal frame's *scratch* window.
>>>> Doesn't that hint at redisplay believing that both windows are the
>>>> selected one?
>>>
>>> Probably. They are the (frame-selected-window) of their respective
>>> frames. I guess that has previously not been possible to see on a tty.
>>> Cab't check at the moment--I've made me a todo to check if xdisp.c does
>>> this differently on ttys.
>>
>> At any time there's only one selected window. When it changes,
>> redisplay is told to update all possibly involved frames and update the
>> background of the mode line of the selected and previously selected
>> windows appropriately.
>
> I've made me a todo entry for that. One thing after the other :-).
>
> (And for Alacritty users reading this: 0.13.2 (1) KKP support is
> currently broken for me on macOS 15.)
>
>>> Got an idea while eating: Does Emacs get a window system focus event
>>> when we unhide a frame? Or something like it? And do we select the frame
>>> then maybe?
>>
>> When that frame gets focus by the WM; it depends on the WM's settings.
>> A frame can get focused by making it, moving the mouse over it,
>> clicking with the mouse into it, Alt-tabbing to it, or by having an
>> application ask to give it focus. I suppose that Emacs has the
>> invariant that the focused frame is also the selected one even if it is
>> hidden. In either case, for a tty we have to do the "focusing"
>> ourselves.
>
> Yeah, if that's not the current problem, there lie dragons. Shit. Did I
> mention that I just wanted Corfu and Posframe?
Just FYI. when I manually select-frame-set-input-focus to the posframe,
the display looks okay. The cursor is shown in the posframe and the
parent's mini-window is empty, like in the GUI case.
Downside is that Emacs doesn't accept input anymore, and has to be
killed :-).
next prev parent reply other threads:[~2024-10-03 7:35 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 12:50 Question about minibuffer and child frames (Posframe) Gerd Möllmann
2024-10-02 13:39 ` Po Lu
2024-10-02 13:52 ` Gerd Möllmann
2024-10-02 14:56 ` martin rudalics
2024-10-02 15:47 ` Gerd Möllmann
2024-10-02 16:08 ` martin rudalics
2024-10-02 17:17 ` Gerd Möllmann
2024-10-02 17:34 ` martin rudalics
2024-10-02 18:48 ` Gerd Möllmann
2024-10-03 7:35 ` Gerd Möllmann [this message]
2024-10-03 8:26 ` martin rudalics
2024-10-03 9:07 ` Gerd Möllmann
2024-10-03 9:33 ` martin rudalics
2024-10-03 9:50 ` Gerd Möllmann
2024-10-03 13:12 ` martin rudalics
2024-10-03 14:03 ` Gerd Möllmann
2024-10-04 7:24 ` Gerd Möllmann
2024-10-04 8:10 ` martin rudalics
2024-10-04 9:16 ` Gerd Möllmann
2024-10-04 9:31 ` martin rudalics
2024-10-04 9:55 ` Gerd Möllmann
2024-10-05 8:31 ` Gerd Möllmann
2024-10-02 18:43 ` Eli Zaretskii
2024-10-02 18:56 ` Gerd Möllmann
2024-10-07 1:08 ` Feng Shu
2024-10-07 4:28 ` Gerd Möllmann
2024-10-07 6:43 ` Feng Shu
2024-10-07 8:00 ` Gerd Möllmann
2024-10-07 8:17 ` Feng Shu
2024-10-07 8:32 ` Gerd Möllmann
2024-10-07 10:03 ` Feng Shu
2024-10-07 10:46 ` Gerd Möllmann
2024-10-07 13:44 ` martin rudalics
2024-10-07 14:29 ` Gerd Möllmann
2024-10-07 21:45 ` Feng Shu
2024-10-08 4:19 ` Gerd Möllmann
2024-10-08 5:01 ` Gerd Möllmann
2024-10-08 5:42 ` Feng Shu
2024-10-08 6:31 ` Gerd Möllmann
2024-10-08 13:06 ` Gerd Möllmann
2024-10-07 8:35 ` martin rudalics
2024-10-07 8:46 ` Gerd Möllmann
2024-10-07 8:52 ` martin rudalics
2024-10-07 9:12 ` Gerd Möllmann
2024-10-07 10:11 ` Feng Shu
2024-10-07 10:36 ` Gerd Möllmann
2024-10-07 12:12 ` Feng Shu
2024-10-07 12:24 ` Gerd Möllmann
2024-10-07 13:44 ` martin rudalics
2024-10-07 14:24 ` Gerd Möllmann
2024-10-07 8:35 ` martin rudalics
2024-10-07 9:46 ` Feng Shu
2024-10-07 7:20 ` Feng Shu
2024-10-07 8:12 ` Gerd Möllmann
2024-10-11 8:03 ` Gerd Möllmann
2024-10-07 8:34 ` martin rudalics
2024-10-07 9:35 ` Feng Shu
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=m2iku9myeb.fsf@MacBookPro.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.