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: Eli Zaretskii
Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus
Date: Thu, 09 Feb 2023 17:53:17 +0200

> From: Óscar Fuentes <ofv@wanadoo.es>
> Cc: Eli Zaretskii <eliz@gnu.org>,  Po Lu <luangruo@yahoo.com>,
>   61337@debbugs.gnu.org
> Date: Thu, 09 Feb 2023 16:32:30 +0100
> 
> > 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.

You mean, you rely on the focus not to change while Emacs's desktop is
not shown?  But if some idle timer causes Emacs to raise a frame, you
will also see Emacs with focus when you switch desktops, right?

I'm not sure I understand the basis for this expectation.  I'd
certainly not even remember in which state I left the applications
before switching away, and will look first when I switch back.
because applications can request focus for any number of reasons.

So I'm surprised that the fact that Emacs gets focus without your
knowing is regarded as a problem at all.





reply via email to

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