From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Thu, 09 Feb 2023 18:50:13 +0200 Message-ID: <83mt5mlr5m.fsf@gnu.org> References: <874jrydpw8.fsf@telefonica.net> <87ilgd7e9q.fsf@yahoo.com> <87mt5pxznh.fsf@telefonica.net> <875ycd6joo.fsf@yahoo.com> <87zg9ovps9.fsf@telefonica.net> <87wn4s6c40.fsf@yahoo.com> <87v8kcvllw.fsf@telefonica.net> <87o7q469vi.fsf@yahoo.com> <87r0v0uqnh.fsf@telefonica.net> <878rh760mc.fsf@yahoo.com> <87mt5nv864.fsf@telefonica.net> <874jrv5k5w.fsf@yahoo.com> <83ilgbmdo9.fsf@gnu.org> <87mt5n3zp7.fsf@yahoo.com> <835ycbm6ci.fsf@gnu.org> <87edqy53gl.fsf@yahoo.com> <87h6vuvoq9.fsf@telefonica.net> <83o7q2ltsj.fsf@gnu.org> <87cz6ivmmz.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28339"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 61337@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 17:51:12 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQA8e-00077A-HG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 17:51:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQA8W-0003q2-5U; Thu, 09 Feb 2023 11:51:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQA8U-0003n7-Qb for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 11:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQA8U-00026R-G5 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 11:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQA8U-0004n6-5L for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61337 X-GNU-PR-Package: emacs Original-Received: via spool by 61337-submit@debbugs.gnu.org id=B61337.167596145918408 (code B ref 61337); Thu, 09 Feb 2023 16:51:02 +0000 Original-Received: (at 61337) by debbugs.gnu.org; 9 Feb 2023 16:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:33534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQA8R-0004mq-At for submit@debbugs.gnu.org; Thu, 09 Feb 2023 11:50:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQA8P-0004mb-Rr for 61337@debbugs.gnu.org; Thu, 09 Feb 2023 11:50:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQA8J-00021N-27; Thu, 09 Feb 2023 11:50:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=291ydXl44goQkW029lPs3rYkWBuTGreZA1LHstxbISM=; b=LusmxeopTqt6Tpr+fFAp QJYjL9rvjupROWRzYFuDwxF91RIMfPfYtYKjOp9B4TrJlo3ctVxGGygkljwxrgXEKrYQktupNIseZ HWV3NGjTolu+xVhgIFJTk/4MUzpuoRiIEaq4o2tQkCozrlcTufjUinq6tmqAyvrBriLbVB9NkBkl+ URhCXzzieUS4W1TrpnLyOegMUvDkVycfkRr/9NGcMkATKYfCHd74gS3n9BWS5DOx5VBEnbIApVgyP KYwX8rqoX8C4aH5whOUKnFjDpJgsfkKsqyXCS3WtcBbcb9qGxolH+HNhnt6kxUA14M7Hs9rXlZ6Fi TNNg+g4+De06yA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQA7y-0007nT-EP; Thu, 09 Feb 2023 11:50:50 -0500 In-Reply-To: <87cz6ivmmz.fsf@telefonica.net> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Thu, 09 Feb 2023 17:17:40 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255236 Archived-At: > From: Óscar Fuentes > 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.