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: Wed, 08 Feb 2023 05:15:23 +0100 Message-ID: <87v8kcvllw.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6880"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com To: 61337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 08 05:16:35 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 1pPbso-0001bL-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Feb 2023 05:16:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPbsM-0006Vz-35; Tue, 07 Feb 2023 23:16:06 -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 1pPbsI-0006UD-HE for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:16: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 1pPbsI-0007Mt-8H for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPbsH-0008M3-Is for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:16:01 -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: Wed, 08 Feb 2023 04:16:01 +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 , 61337@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167582973832084 (code B ref -1); Wed, 08 Feb 2023 04:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2023 04:15:38 +0000 Original-Received: from localhost ([127.0.0.1]:54469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPbru-0008LQ-7v for submit@debbugs.gnu.org; Tue, 07 Feb 2023 23:15:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPbrt-0008LG-0H for submit@debbugs.gnu.org; Tue, 07 Feb 2023 23:15:37 -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 1pPbrp-0006OC-Ie for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:15:33 -0500 Original-Received: from relayout04.e.movistar.es ([86.109.101.204] helo=relayout04-redir.e.movistar.es) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPbrn-0007Ex-81 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 23:15:33 -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 relayout04.e.movistar.es (Postfix) with ESMTPSA id 4PBRVh5q5Nz12gM; Wed, 8 Feb 2023 05:15:23 +0100 (CET) In-Reply-To: <87wn4s6c40.fsf@yahoo.com> (Po Lu via's message of "Wed, 08 Feb 2023 11:59:43 +0800") X-TnetOut-Country: IP: 81.39.121.73 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout04 X-TnetOut-MsgID: 4PBRVh5q5Nz12gM.A4481 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1676434525.32179@oJGnlSmRGFhdBTsYo2NQNA Received-SPF: softfail client-ip=86.109.101.204; envelope-from=ofv@wanadoo.es; helo=relayout04-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:255101 Archived-At: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > What if you do this? > > My suspicion is that the icon name is now being set to reflect that the > frame has been iconified, and KWin (wrongly) treats that as an attempt > to focus the frame. > > diff --git a/src/xterm.c b/src/xterm.c > index 1325d923be9..fcac6bc044f 100644 > --- a/src/xterm.c > +++ b/src/xterm.c > @@ -25584,6 +25584,8 @@ x_text_icon (struct frame *f, const char *icon_name) > if (FRAME_X_WINDOW (f) == 0) > return true; > > + return; > + > { > XTextProperty text; > text.value = (unsigned char *) icon_name; Same. GCC warned about missing return value, so then I tried `false' and finally `true'. No change.