bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focu


From: Óscar Fuentes
Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus
Date: Thu, 09 Feb 2023 16:32:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

>> How is this related to "the z-order isn't change" problem which Óscar
>> complained about?
>
> Oscar meant that KWin focused the frame without changing the position of
> Emacs in the window stack.  That isn't the bug which was reported, Emacs
> being focused was.

Right. The part about the z-order not changing just makes the problem
worse.

For instance: let's suppose that Emacs window is hidden by some other
application's window, (Konsole for instance) that also has the focus.
When I switch desktops Emacs will steal the focus, but otherwise the
screen's appearence will not change, which makes me think that Konsole
still has the focus, then I start typing but the input go to Emacs, and
this too often causes a mess.

Same thing could happen even when Emacs' window is visible, of course.
After all, the user does not expect that switching desktops changes the
focus to certain application's window.

As for the proposed workaround, discovering that you have to set
icon-title-format when you change frame-title-format is a bit
problematic. Too many users don't read PROBLEMS, less so for behaviors
that worked fine for ages.

Po: I can open a bug report on KDE, if you wish, although the technical
issue is out of my depth and the user-facing description is too vague,
so if you can provide a description of what Emacs is doing under the
hood that causes KDE to give it the focus, it surely will help.





reply via email to

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