From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Oscar Fuentes" Newsgroups: gmane.emacs.bugs Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Tue, 07 Feb 2023 06:07:51 +0100 Message-ID: <874jrydpw8.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5370"; mail-complaints-to="usenet@ciao.gmane.io" To: 61337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 07 06:09:16 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 1pPGEG-00018l-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Feb 2023 06:09:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPGE4-0001qE-HW; Tue, 07 Feb 2023 00:09: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 1pPGE3-0001pv-7J for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 00:09: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 1pPGE2-0004ya-Qm for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 00:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPGE2-0001TC-F6 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 00:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Oscar Fuentes" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2023 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61337 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16757464895568 (code B ref -1); Tue, 07 Feb 2023 05:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 05:08:09 +0000 Original-Received: from localhost ([127.0.0.1]:50741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPGDA-0001Rk-EW for submit@debbugs.gnu.org; Tue, 07 Feb 2023 00:08:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPGD8-0001Qi-De for submit@debbugs.gnu.org; Tue, 07 Feb 2023 00:08: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 1pPGD8-0001hX-3v for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 00:08:06 -0500 Original-Received: from relayout01.e.movistar.es ([86.109.101.201] helo=relayout01-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 1pPGD3-0004sg-BN for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 00:08:04 -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 4P9rjj1tB2zfZSD for ; Tue, 7 Feb 2023 06:07:52 +0100 (CET) X-TnetOut-Country: IP: 81.39.121.73 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 4P9rjj1tB2zfZSD.A8B8D X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1676351274.97015@fz+ROGYsm2chRI/VWoozVw 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:255020 Archived-At: This is on KDE with two desktops. Let's suppose that we are on Desktop1. On xterm, for instance: $ emacs -Q Eval this on *scratch*: (setq frame-title-format "hello") Click somewhere on Emacs' frame to update its displayed title. Set focus to xterm, switch to Desktop2 and back to Desktop1. Focus is on Emacs' frame. The z-order is not altered. After bisecting: commit e99f41f03a97641ee05ba4a27f8b91c190f55df1 Author: Po Lu Date: Thu Jun 9 21:48:19 2022 +0800 Fix recalculation of `icon-title-format' after a frame is iconified Previously it would only happen upon the next mode line redisplay, meaning that just pressing C-z would not update the implicit title, since C-z doesn't cause a redisplay. * src/dispextern.h: Update prototypes. * src/frame.h (SET_FRAME_ICONIFIED): De-slugify. Call `gui_consider_frame_title', since `icon-title-format' might be different from the current frame title. * src/xdisp.c (gui_consider_frame_title): Export (also in dispextern.h). (bug#55850) I checked that reverting this commit fixes the problem. In GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2023-02-07 built on sky Repository revision: 746748f5c283b98a221571e725833affe304a748 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101006 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid --with-modules --without-imagemagick' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: es_ES.UTF-8 locale-coding-system: utf-8-unix