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#53957: 29.0.50; pgtk: starting emacsclient from thunar breaks X clipboard access Date: Sun, 13 Feb 2022 09:17:00 +0800 Message-ID: <878rufo99v.fsf@yahoo.com> References: <4f4f9e9a-e88c-d63b-f836-d3af9c8602df@posteo.eu> 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="16367"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 53957@debbugs.gnu.org To: =?UTF-8?Q?S=C3=A9bastien?= Miquel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 13 02:18:17 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 1nJ3Wr-00043T-DI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 02:18:17 +0100 Original-Received: from localhost ([::1]:59958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJ3Wo-0000Yw-SU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 20:18:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJ3Wc-0000Yl-DX for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 20:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJ3Wc-0000Tq-4D for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 20:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJ3Wc-0006ws-00 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 20:18: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: Sun, 13 Feb 2022 01:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53957 X-GNU-PR-Package: emacs Original-Received: via spool by 53957-submit@debbugs.gnu.org id=B53957.164471504126663 (code B ref 53957); Sun, 13 Feb 2022 01:18:01 +0000 Original-Received: (at 53957) by debbugs.gnu.org; 13 Feb 2022 01:17:21 +0000 Original-Received: from localhost ([127.0.0.1]:36023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJ3Vx-0006vz-0a for submit@debbugs.gnu.org; Sat, 12 Feb 2022 20:17:21 -0500 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:42289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJ3Vu-0006vd-6U for 53957@debbugs.gnu.org; Sat, 12 Feb 2022 20:17:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644715031; bh=uUnGihMaj6rJTKASV5Gp79A0+z9oTrcmsvQE35dvpdQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=s/fV3+A4zmuLT5+IcZJtJXw7orIjB7Pah1665R4MW/4W1/K/fxFR/Ps3jFZka/VkUiY5zSIw2yOe6lPqoMP16t0/wEt759fKV2LvLFL3m/aiN5/iFWE+f7h0J4JglH701EkP9giqu86KV/8BjIh7Jv4//W8UvQSxYMYWA346zilTglMccFGuiwbvoMtAf16QLMPtiH9YmTyEN3AYfdcUhgkb2xYbl/HbnKXmBxZg56LWt+1WowdPNnlPKcQq3sfuznnX+170I3EWJ6LLaa5RslPqvK6WTIGs7smtPQGm6298SJZ/v5AqFDEGO4UIagZJyhmLjAsx/cF+19QZr6SlRQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644715031; bh=BVFMLjfu5ZOzEXJbvCT2YnfYMV3VYH3ApDuZ+7pP9TH=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=KknGpsK7dE6uuTqn7ZdBaMR6+I7+jLHtfF76JnSB72cxqkb116Jb2bCUFjCFzGsNTGxDC5ztrZc/IKHCnTCUFej4K7n2KCOdpPF35Uz7d/OSSXGb16B3BqTGQkb9/CgMsWRY3o3vNlI5U1PD2EPZu2fmB+gajTUM6A8/Lbz6wd/b1h76sKA1PDDNBQzHvyL26o0Ldn4DVDKeITzA4InCFMS+vK6OMEQ3eSxl5r6WIQj433Kc4sNbit8ev4WJOEtF5o8ZcQFo10oGeOMvNJhyvVJYXWDHzH6xgnILAXDwHKCTEgGXgDTgwMwPKQ0JWbbYQzz7iU5EPZh6p1i44YumVA== X-YMail-OSG: 5IR4XMMVM1kwd332x2oMFuIDZD2Pm3Vrwbs5jFyedUUpS79cr.P.uAYXbpKF_kK OgX5f5Dj7YSqdCG0aeV5uKDn0RQVCyshrYeEOemISOELeigPLUcR3Uz9JCDAuXXR_fhKLyAV9pHr pgE1ixbxR87YdS8vD84KhI4YiETI8FykGx43qvOt7J8tXuzuIrMaNvM8AVJC69kZkMPSPUFdkQd2 wi4P6cDCPJJHvxcXwAPnOGR5egiTiuhZqghmGyIzR..Ab.xEbuWHXX6gEKVyyFRFE8780MORS37t XxOhv6NVqCaTTGspm974GkX7RjL68MW0Hi.fFVs1tED5Vk6ha1DPBcVjUcvpnPzVt12Wa9iDVFzT dbIcUs0U2r7WGddi2rV8a_IlKEbUoTg16mHHj41VyiTyk6ptptFEomvVGYyLL87CnFgC_X4VUCvm EXDQd2Wq.hFvs7vQxf76qaKRi6t1F5jzy6eYlMB9iizLRUshVQ2BIpRahE02uexnGlBddemIQRHD ZNIGiMIbp421wYV8b6qgfxmCJyREOG8NNeby0R.PMx3VXFOZRVtT5FOX87fkCBYPsRMIZlEbIdAD GTIq8uruFBomS7QfJfX6xVh.eeOM6aDlVuY5EdMKNRCZWxmCrE4MwhY6APl1TMywm97wkTcjB0lD WtzOTd6Do1is7v1Ym4LB_lq6qYWVwJTHX8rPCK61vIhGrl0pwJQ6TliLeaICXXyMOYyqKv5jjTPt Lh1cp_9nia7ptL4RvIzxrFxvQsM8azXoCNdbm6vqplRwzEi4jvPPiQCr2mNClBDTPnDYixiyD7pD 4MIi_5rnM1b7mmq_FWntV5OvMphKZ7atazlfCiV1bW X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sun, 13 Feb 2022 01:17:11 +0000 Original-Received: by kubenode518.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d4d4ca67578ed6903925e7ba10afb122; Sun, 13 Feb 2022 01:17:04 +0000 (UTC) In-Reply-To: <4f4f9e9a-e88c-d63b-f836-d3af9c8602df@posteo.eu> ("=?UTF-8?Q?S=C3=A9bastien?= Miquel"'s message of "Sat, 12 Feb 2022 12:46:31 +0000") X-Mailer: WebService/1.1.19724 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:226756 Archived-At: S=C3=A9bastien Miquel writes: > Hi, > > To reproduce : > =C2=A01. Start `emacs -q --daemon` > =C2=A02. Start a frame with `emacsclient -c`. At this point, X clipboard > =C2=A0access works fine and I can copy/paste between emacs and other > applications. > =C2=A03. From Thunar (file manager from xfce), right click a file and `Op= en > =C2=A0with` emacsclient (/usr/bin/emacsclient), creating another frame. > =C2=A0=C2=A0=C2=A0 At this point, X clipboard access is broken: I cannot = copy/paste > =C2=A0between emacs and other applications. > > In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.31, cairo version 1.17.4) > =C2=A0of 2022-02-05 > Repository revision: 224aeb2877fffc894e9d1b31f7f44db0e55160c3 > Repository branch: master > System Description: Arch Linux If you're using X, you shouldn't be using PGTK. The support provided by the real X port is miles ahead of what GTK can offer. That aside, I suspect emacsclient is causing Emacs to open a second display connection, which causes clipboard access in PGTK to be disabled due to a GTK bug. What does (x-display-list) evaluate to in the buggy Emacs, after you create the other frame which causes the bug? Thanks.