emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about minibuffer and child frames (Posframe)


From: Feng Shu
Subject: Re: Question about minibuffer and child frames (Posframe)
Date: Mon, 07 Oct 2024 17:35:45 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

martin rudalics <rudalics@gmx.at> writes:

>> posframe do not handle focus in most situation, for it is too complicate
>> to let focus work. posframe just *show* the content of a buffer.
>
> What if the user clicks into a child frame with the mouse?  Do you have
> the frame's 'no-accept-focus' parameter set?  Does it work everywhere?
> I never got any feedback on this.

by default, posframe use 'no-accept-focus', but it seem to not work
everywhere, it seem to depend on window manager used. if user clicks
poframe, sometimes it will get focus and insert user input, sometimes
not.

by default, posframe do not support user clicks :-)

>
>> When enable vertico-posframe, we just let the content of minibuffer is
>> showed in a posframe, but input handle is in parent frame, we lock the
>> height of parent minibuffer window and vscroll minibuffer window to hide
>> minibuffer content in below function.
>
> This sounds awfully tricky.  Did you never try to do that in a "cleaner"
> way?  Here I _always_ have one single minibuffer window in a child
> frame

Haha, My Emacs level is unable to handle focus bugs, and posframe do not
consider focus at the begin of design :-)


> and with the exception of some minor modifications that were necessary
> when redirecting frame focus got broken I have no problems.  The child
> frame pops up when and where needed and is not visible otherwise.
>
> martin
>

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]