From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus Date: Thu, 09 Feb 2023 22:16:26 +0800 Message-ID: <87edqy53gl.fsf@yahoo.com> 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> Reply-To: Po Lu 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="24488"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: ofv@wanadoo.es, 61337@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 15:19:25 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 1pQ7lk-00066f-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 15:19:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ7lR-0005AT-Bu; Thu, 09 Feb 2023 09:19:05 -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 1pQ7lO-00056U-Tr for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 09:19: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 1pQ7lO-0002AQ-LF for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 09:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ7lO-0005fF-G7 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 09:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 14:19: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.167595232821753 (code B ref 61337); Thu, 09 Feb 2023 14:19:02 +0000 Original-Received: (at 61337) by debbugs.gnu.org; 9 Feb 2023 14:18:48 +0000 Original-Received: from localhost ([127.0.0.1]:58009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ7l9-0005ej-F3 for submit@debbugs.gnu.org; Thu, 09 Feb 2023 09:18:47 -0500 Original-Received: from sonic311-50.consmr.mail.ne1.yahoo.com ([66.163.188.231]:43746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ7l7-0005eW-D8 for 61337@debbugs.gnu.org; Thu, 09 Feb 2023 09:18:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675952319; bh=eIPcJEgeezXHwd8omUj7uwrULjxi5SM1mszc5yyv+Cs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=M3lwM2HKQojcB57C438pHKByx9WMqnPw7SoGcrdbfEWLcgAF32ndEgvvHd3Yx3mh3uvzIElVjlFQAQcyvRSFLzRBvAwWOZd6do3RpTh7d3tXoygU9SvunhbCF7Zj+EmyQfVv86GQZ6PYWkKHfn9PWX/RVhV8wD3R5RIvQzZXID9jrTU2yz1ygdUc28WGsDUB4YkCYVSc8vK/O3eTpw9KDopwWkJA/f4qHclBBtr8g54KICLvr83wFzbc8mjRTcdLNvNYvqn3seJUTiNA3d3NAQjl7VqGRsYiCuDcbQvhL0njKJNHmZmBHrODcJP3I9ER+Fk+gZbnW08w18Z3NWDC4w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675952319; bh=7/qIAvAXbBfYSyUog77RztIuFosLAq0WWZBBVFJMFnX=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=i7LhB53KSVUzZ8j1pwNHblSUVp4j7UP0f+nmllZq75hb+0cbZATSMcmp7aIvIai//RIf1d20z46JTCp0Wevf1YlKv358l7QdyQaxvUVKpRtfZWphcT1K9gvW76to0H4XwYkv5NEkajQjjAWI9//7bBiaPcOgVb+GmDWPP9mL5L+vlyvDtKQbgsvRUi/U2uTqoi/aS0T6x9JhB5zNrl2BSlg8BFVK8DOmWDciT7Kgt7kCuSlUp/rkBHNZXTQtkhU9aQBFFgq4nh+A+z1dEFf9k+RGs6OZuBPn075NkNYiY6S1TJAOFrv/LWXb3jIp8uGnogbc1KCYldaIfwfQewoIBw== X-YMail-OSG: IlOIebsVM1l_eVHIFfUYFSuyJP6fn3UT3qKrboTw1FW7ZXDxwlAVHiN7iHmqXni 6fVAIWTGP3h.UtqKAfDczme9hhLY8zzmEvYnZol.9uPqlkZ.eaWVarvQ9wzRIP1EBVSlaL2AHVHk TG8v4TAh_BxvQmYyYSIMmn7IccsvI3itYhmA73GkdO1VFjXBELhEVJ8PIugfgi2f.l_bYwc.WPoJ 13CGgQ5sE.iKZE60H9TiD0nYZAzn2PT90s6zu0G17WKtzfEY8_uoD8zX7vpE6gVKvdW.iWonCuxY 2IOGif.OOq45JfxIFWPHBYgWkdqTRg2gnYn.gbB2sstozJXOO7qTbycvu_mOeT8Zqv2J.Tx2kZk. TNtTAsSwPdiYiSADfucGEj6tjUOs_Jp_a8DrkT5.Z9tFP.VZqrtQ0BcW9mOJZ8lIEJIshV9Euq6A FFwQFlBCIoyiPLfJaxDRrFHMK.2EVTe8RLTflRPpuaPhwac4DFR3uc1D_wlYqprOlj8w8dyJJ95W gVAmuEMe4ysExs9dvX3FEl.03AdQJkXm4iKjuvb5fhF4wluhoaYF_1WjXx2UyVM4E3wWFBmf9e_W rySqVq2R0aciAQdwzj.tLeaAQ164w9tE6nm86bvWF19K5FQe13DrjUq4b8fdscpzYSMLvkig8mIm s3EiTfMYI9TXqQ7r1TtXw_n5oZGRcx8aiuRvBTr3JhXAvx8vBb8h6MxLXpbJV6VXwMNs_YTZVB4H opwLDI.HLkien8_dAv4WeSpCZ9.P4yW17n8FD7FUUqO4a77V7rq7IP9bUb.3E1q2oqZwnEousvOv 6tZzpB4MK0633DAUZmfhhL7L8uknk2olPM3zpxZqZv X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Thu, 9 Feb 2023 14:18:39 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-7wpmf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 82ce23f81d12f3d0f5f99f11d71e5f6e; Thu, 09 Feb 2023 14:16:35 +0000 (UTC) In-Reply-To: <835ycbm6ci.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Feb 2023 13:22:05 +0200") X-Mailer: WebService/1.1.21161 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:255221 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: ofv@wanadoo.es, 61337@debbugs.gnu.org >> Date: Thu, 09 Feb 2023 18:23:00 +0800 >>=20 >> Eli Zaretskii writes: >>=20 >> > 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) >>=20 >> 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. >>=20 >> 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 =C3=93scar > 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.