From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Thu, 09 Feb 2023 16:32:30 +0100 Message-ID: <87h6vuvoq9.fsf@telefonica.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, eliz@gnu.org To: 61337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 16:33:19 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 1pQ8vG-0004Zr-UJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 16:33:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ8v2-0003EY-Pq; Thu, 09 Feb 2023 10:33: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 1pQ8v1-0003EI-DM for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 10:33:03 -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 1pQ8v1-00027l-5C for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 10:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ8v0-0008Tm-JI for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 10:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 15:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61337 X-GNU-PR-Package: emacs X-Debbugs-Original-To: X-Debbugs-Original-Cc: Po Lu , Eli Zaretskii , 61337@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167595676532571 (code B ref -1); Thu, 09 Feb 2023 15:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2023 15:32:45 +0000 Original-Received: from localhost ([127.0.0.1]:33279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ8uj-0008TH-8u for submit@debbugs.gnu.org; Thu, 09 Feb 2023 10:32:45 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ8uh-0008T9-Gh for submit@debbugs.gnu.org; Thu, 09 Feb 2023 10:32:44 -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 1pQ8uh-0003BW-8e for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 10:32:43 -0500 Original-Received: from relayout01-redir.e.movistar.es ([86.109.101.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ8uf-00024P-6K; Thu, 09 Feb 2023 10:32:42 -0500 Original-Received: from sky (73.red-81-39-121.dynamicip.rima-tde.net [81.39.121.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout01.e.movistar.es (Postfix) with ESMTPSA id 4PCLTV5BQrzfZrj; Thu, 9 Feb 2023 16:32:30 +0100 (CET) In-Reply-To: <87edqy53gl.fsf@yahoo.com> (Po Lu via's message of "Thu, 09 Feb 2023 22:16:26 +0800") X-TnetOut-Country: IP: 81.39.121.73 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 4PCLTV5BQrzfZrj.AAA32 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1676561553.70543@KXU65ge/LT5oN+zlCwQVxA Received-SPF: softfail client-ip=86.109.101.201; envelope-from=ofv@wanadoo.es; helo=relayout01-redir.e.movistar.es X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action 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:255225 Archived-At: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> How is this related to "the z-order isn't change" problem which =C3=93sc= ar >> 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.