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#58245: 29.0.50; other-frame is broken in EXWM Date: Sun, 02 Oct 2022 22:24:52 +0800 Message-ID: <87v8p22thn.fsf@yahoo.com> References: <87o7uuc1bb.fsf@drshapeless.com> <878rly4db1.fsf@yahoo.com> <87mtaecs6d.fsf@gnus.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39262"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Jacky Li , 58245@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 02 16:26:11 2022 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 1oezv0-0009ya-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 16:26:11 +0200 Original-Received: from localhost ([::1]:55900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oezuz-0000eJ-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 10:26:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oezus-0000e8-17 for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oezur-00066S-PQ for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oezur-0001ms-KK for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2022 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58245 X-GNU-PR-Package: emacs Original-Received: via spool by 58245-submit@debbugs.gnu.org id=B58245.16647207106808 (code B ref 58245); Sun, 02 Oct 2022 14:26:01 +0000 Original-Received: (at 58245) by debbugs.gnu.org; 2 Oct 2022 14:25:10 +0000 Original-Received: from localhost ([127.0.0.1]:47749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oezu2-0001lk-5z for submit@debbugs.gnu.org; Sun, 02 Oct 2022 10:25:10 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:34799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oezu0-0001lR-35 for 58245@debbugs.gnu.org; Sun, 02 Oct 2022 10:25:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664720701; bh=Jftma1KQCLBTPhC80CcMKndBTyvQMG/vvZ90PhSh6HI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=F3T6odm1vE6i8pspYdMhy4iQ4iUicGUMJ9dm/Mi/+in1JAv4jjtHvXIkuJc5ICS4hU+iQXvt7QWX3vhooIjRm8U6fVOszTFeZT6KLtojcKtQEoWkPM4V/GhUnBfy3R3k9eySGU4hun76MBV4C154PqC6SSFvMa9JtxOF4C328PNGPNoAParZ/bkXbsKRfex/jS62AQgSiyK96yT925B7Helw6dANjnQODwMTtGZWruVnSIlLE4WWOFGFr+JTeGfIGC32+q7dio07RPa7ASlMnF9wHKJk1ke+FoqTl6Xc9BWtuFnsTH3lhjNym5doKuiBrJKGq2pD6WzSuDAQZ1zFNg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664720701; bh=m8cnzY6eYHn6fFhBqkjr10nYr6tGjNzlnsJ0asCQS6z=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=B/smZTgoGsvNPzIvoswWQL1wQZOYpAuWEQG9x4YVG/IEBtaIwG9QIk4yar2tiElYJJe9/1Scp1fjlyiVmvQxEbZMXSNi91gPIQuDBtjX+bC2up8RZ506cfDbykXfuTYtqTZHfQjIG5vWYoN/S1hheo4uGd6lGtJhGGRVbGvL6BM40XuNUabYO6RU0/23HZxMNGj5O/YcM+iNmcBxacwYESEqDHUBwZSXh4ifZdB/dtbQdrUn3OYuPKMtwLOV59dC1Um3354uM/LeOp71KdwRZKpMCG84ycNru7OpxNQD/ebxvr4ydNR59Q25zG8eugQXzaWaxz7AAnr1JjXhAHneEw== X-YMail-OSG: SWanQ0MVM1nV_qnF0GrCjtvDtbDduuAUBZq73GihJIODHjJJYlUKcUhVl4sYUMv Zsj8uSGRcjWVxDS9Fi100LgJaXS8XTeDUsnw.epNmOvoCPyAoDzkuIXyDJxtKFkQ62hW2X6B58uY paMbuAbpxEjbB.omhdOCIKSEG1IsVyOiwdT6YCyh9j2ioLI1c67Cg8n38k1roobIRy2zI5zxAG3J gB5FtTXdTRBF5gv0_wGPbN58ShCsW8_ebVUZ7IUEv5IHzue6qliCEU7YgBB1L4j6r338xGLpqoSG K3ZuWvlTzoixnrWsEibsWJ5WAJoBPwJkXaefT3dDFW4TdZE8rlmH1Sce7eXUKfRIqzmAIwqufzFc xlGnc60s1fvfibkRXQsWVQuUJBR5gq6kmuI8fWfpxA6ldjAQoHTRtra1srkLtDjzSpi4MGr3oKUP fyR6MUmJKyLM3e3du6dSv2ezNIzaHQD9o6Jp8i1jrq9XsdF1njv1NLahtSLfClUfxvtAd6fdkLOQ ux4fQBD.YgNFb1ETfbAeVWuegkXljUIlUGZJB3sgGA1IUMsQvlNjkvlGfpKXtly8FrUimi6ubnUs U1icpGsJJkPD2qlJ7jnqYZOdrlRGIzYCif.BwYvlj8ldkN7yhusnXNk7Pe1owk.6k0wazWsfWUFC B5Skt7BN7oBY9U1eee__GMTYCKBhivF9o_jiRT4vplWDDJ4_F7rstNMLQQ45h0.a_vDj_CXIj8BX Mm7fgYgaDn8mf6yJImuDnuX0Yy0rRbJsOOLr0KrOXb2JSbxuBRX1LnWJvTjzqagdFiKNwH82EiUh b03xQQg.6DJll9wgufFcwN4vyWxc0.t4C_ASnz.c0N X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sun, 2 Oct 2022 14:25:01 +0000 Original-Received: by hermes--production-sg3-cf9dc7f8d-vdvzk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b5641f450c62bdee42c38ca8eb09eac2; Sun, 02 Oct 2022 14:24:57 +0000 (UTC) In-Reply-To: <87mtaecs6d.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 02 Oct 2022 14:43:06 +0200") X-Mailer: WebService/1.1.20702 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" Xref: news.gmane.io gmane.emacs.bugs:244223 Archived-At: Lars Ingebrigtsen writes: >> 3924fbd025 is not buggy; EXWM enables support for _NET_ACTIVE_WINDOW, >> which Emacs expects to be implemented correctly: > > It's a regression, and should be fixed on the Emacs side. The previous code was causing problems for me, namely C-x 5 o not working on the GNOME Flashback session (which I have been trying to move to, large memory leaks upon taking screenshots in GNOME Shell being the last straw.) This is because the previous code had two problems: SetInputFocus called with CurrentTime changed the last-focus-change-time to the current X server time, which is later than the time specified in the _NET_ACTIVE_WINDOW message. So, when Metacity tried to set the input focus in response to the _NET_ACTIVE_WINDOW message, it failed, as the timestamp specified in the _NET_ACTIVE_WINDOW became out of date. As a result, the workspace of the frame being switched to was not made current by the window manager. We cannot possibly make Emacs stop working with a correctly written and widely used window manager in favor of broken window managers, especially those that mess with internal details of Emacs' X communication. Emacs does not guarantee that it will always interact with the X server in the same fashion, and any external program making assumptions there is in uncharted territory. The problem should be fixed in EXWM; in the meantime, Jack can do: (setq x-no-window-manager t) which will make Emacs skip communicating with the "window manager" (which is actually Emacs itself; I'm surprised that doesn't lead to hangs elsewhere.)