From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Óscar Fuentes" <ofv@wanadoo.es>, 61337@debbugs.gnu.org
Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus
Date: Fri, 10 Feb 2023 10:15:48 +0800 [thread overview]
Message-ID: <871qmy465n.fsf@yahoo.com> (raw)
In-Reply-To: <83mt5mlr5m.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Feb 2023 18:50:13 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Óscar Fuentes <ofv@wanadoo.es>
>> Cc: luangruo@yahoo.com, 61337@debbugs.gnu.org
>> Date: Thu, 09 Feb 2023 17:17:40 +0100
>>
>> > 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.
>>
>> Sure, but on this case you will see that Konsole's window is covering
>> Emacs' (if Emacs' window is visible at all), so you assume that Konsole
>> has the focus. For avoiding that you must take care of looking at some
>> place that indicates which window has or has not focus (usually the
>> window's title bar) noticing that Konsole has no focus, and perform an
>> action to either give focus to Konsole or bring Emacs' window to the
>> front.
>
> Of course. But this need to make sure the window which has input
> focus is the one you think it is, is something routine in a windowed
> environment, IME.
>
>> > 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.
>>
>> Focus stealing is widely regarded as a very rude action.
>
> Happens to me all the time, and at least sometimes for good reasons:
> for example, if a program pops up an abort dialog, it is completely
> reasonable for it to steal focus. Similarly any other event that
> requires an immediate attention from the user.
>
>> Certainly, just switching destktops is not one good reason for stealing
>> the focus.
>
> Once again, you assume that nothing happened except switching
> desktops, but that assumption doesn't have a very solid basis.
>
> But I guess we will need to agree to disagree here.
I think you are both arguing over a misunderstanding.
Oscar's problem is that KWin focuses Emacs when it really should not,
when Emacs has done nothing to ask for the focus, and is in fact
iconified in a different desktop.
And even worse, that focus is set in a way that cannot easily be
perceived by the user.
next prev parent reply other threads:[~2023-02-10 2:15 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-07 5:07 bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Oscar Fuentes
2023-02-07 14:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-07 15:29 ` Óscar Fuentes
2023-02-08 1:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-08 2:45 ` Óscar Fuentes
2023-02-08 3:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-08 4:15 ` Óscar Fuentes
2023-02-08 4:48 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-08 15:24 ` Óscar Fuentes
2023-02-09 2:20 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 3:17 ` Óscar Fuentes
2023-02-09 8:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 8:43 ` Eli Zaretskii
2023-02-09 10:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 11:22 ` Eli Zaretskii
2023-02-09 14:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 15:32 ` Óscar Fuentes
2023-02-09 15:53 ` Eli Zaretskii
2023-02-09 16:17 ` Óscar Fuentes
2023-02-09 16:50 ` Eli Zaretskii
2023-02-10 2:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-02-10 5:07 ` Óscar Fuentes
2023-02-10 7:15 ` Eli Zaretskii
2023-02-10 1:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-10 4:56 ` Óscar Fuentes
2023-02-13 16:02 ` Óscar Fuentes
2023-02-14 2:02 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qmy465n.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=61337@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=luangruo@yahoo.com \
--cc=ofv@wanadoo.es \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).