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 13:22:05 +0200 Message-ID: <835ycbm6ci.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> 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="36996"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, 61337@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 12:23:32 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 1pQ51X-0009Oy-53 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 12:23:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ516-0005EW-Tc; Thu, 09 Feb 2023 06:23: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 1pQ514-0005EF-IN for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:23: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 1pQ514-0001BU-AS for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ513-0004MB-RZ for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:23:01 -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 11:23:01 +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.167594174616690 (code B ref 61337); Thu, 09 Feb 2023 11:23:01 +0000 Original-Received: (at 61337) by debbugs.gnu.org; 9 Feb 2023 11:22:26 +0000 Original-Received: from localhost ([127.0.0.1]:57703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ50U-0004L8-9X for submit@debbugs.gnu.org; Thu, 09 Feb 2023 06:22:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ50P-0004Ks-BZ for 61337@debbugs.gnu.org; Thu, 09 Feb 2023 06:22:24 -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 1pQ50J-0000wz-6D; Thu, 09 Feb 2023 06:22:15 -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=hOYJiuRkdfyp87RCMLZiJHn/PU2f+heOFPfsXKQoV/w=; b=YjfXsAZW3UmmUTao31eo pIbvYO2A+DB5mwlq79t3qAB0smYWRTHn75Kg/gw59CjTUIeIcW4RVXeOM3WY9UyN1s0CXGLUQuxAu 1U0apvVbuYdFfr1y1cn/ADh++N4xVvV+vJ/ni7LA3Vr7eMthNFaSR88mupBuLhzPl6rw7sLCEauoM +kw/1dwBBhVEhN2q8ZQL1FuP9izk32TIkT4tJQW3EjoHCYTZmKLCa8h18lvbh+txu+NzKSD+pd2Ts 2Q7yCwYPlOamOzgBAt4VP8U6Z75L9F4lPsMTEGtgk+x+owD8ZGrBvaDIo22IJALSQCp6srB9z798K 6PiwEGfI1aLuDA==; 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 1pQ50I-00049k-MJ; Thu, 09 Feb 2023 06:22:15 -0500 In-Reply-To: <87mt5n3zp7.fsf@yahoo.com> (message from Po Lu on Thu, 09 Feb 2023 18:23:00 +0800) 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:255213 Archived-At: > From: Po Lu > Cc: ofv@wanadoo.es, 61337@debbugs.gnu.org > Date: Thu, 09 Feb 2023 18:23:00 +0800 > > Eli Zaretskii writes: > > > Which part? the change in xfns.c is fine (it just makes the code > > slower, so perhaps test EQ first and Fstring_equal if EQ doesn't > > return non-zero) > > Just the change in xfns.c. It fixes a bug in the original code (which > was trying to test whether or not both strings were equal, but didn't > handle the case where the strings were equal, but not EQ.) This part of the change is OK for emacs-29. > > However, to tell the truth, I don't really understand the phenomenon > > being complained about in this case. The original report says: "the > > z-order is not altered", whereas the conclusion of the analysis is > > "KWin seems to treat this as Emacs asking to be focused". Would you > > please describe the problem in easier-to-understand terms and use the > > user-facing behavior instead of technical terms like z-order, so that > > I could at least make up my mind whether this issue is serious, and > > perhaps think about alternative solutions? E.g., I don't yet > > understand why returning early in x_set_title should help here, and > > how. > > The problem is that KWin apparently focuses a window if its title > changes while it is in a different workspace. That's misbehavior on > KWin's part, and likely a bug. How is this related to "the z-order isn't change" problem which Óscar complained about?