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.devel Subject: Re: pgtk and clipboard on ChromeOS/Crostini Date: Sat, 12 Oct 2024 15:34:04 +0300 Message-ID: <86ed4lwldv.fsf@gnu.org> References: <87ldywvkij.fsf@alephnull.site> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alok G Singh , Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 12 14:34:53 2024 Return-path: Envelope-to: ged-emacs-devel@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 1szbKe-0006Fp-VR for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Oct 2024 14:34:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szbJx-0004vK-R1; Sat, 12 Oct 2024 08:34:09 -0400 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 1szbJw-0004v4-Ck for emacs-devel@gnu.org; Sat, 12 Oct 2024 08:34:08 -0400 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 1szbJv-0004hx-TN; Sat, 12 Oct 2024 08:34:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fi1SOI1XjSKkvAzXLfyl0oP2tDjEmxCNdaLkJAHyNDA=; b=k44IEH1WLZko Lp4/S2Er4nMznxLnHUERa3d+ODIjHGLfy4amX/jpe7BfGqy4wupgCU67ykqWZQ6qnRv5ETkKxRzNW wSLCSKeV/oO8fnLKhQL9rGY2VKXhKLK5t6ld5Kol+xFWXK7Mwhy9ZHh2KTC/1g/2adoxfFIo/oDAx PPrQpE6C85W3FjlTYRthjnNn8x2bD9ZCUl00KvAeOltpxDprsQSYeFkcu3s9iTi67FGxBoVmzZyVb kZ8L/vNtQN+1qvX/WZYZCl+ecl6/UGDtJ6Z3eE66esiaX4pS1be4TfngYIJ9J5OgKW+LCXSWpQcow UKssO2OExFfmJg2qvB5hCQ==; In-Reply-To: <87ldywvkij.fsf@alephnull.site> (message from Alok G Singh on Thu, 10 Oct 2024 09:01:24 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324513 Archived-At: > From: Alok G Singh > Date: Thu, 10 Oct 2024 09:01:24 +0800 > > On a recent build[1] from master, the symptoms are: > 1. When copying with kill-ring-save (M-w), the selection appears in the > system clipboard <20% of the time. > 2. kill-line (C-k) reliably copies text into the clipboard. > > There are some reports from last year about similar behaviour on > WSL. wl-paste --list-types and gui-get-selection are both empty about > 80% of the time after a copy. Other Wayland-only programs (like kitty > terminal) do not have this problem. > > I am not sure how to debug/trace this. I know there is debug-on-entry > and debug-on-variable-change but I don't know which function/variable to > use. Any help appreciated as this is a very frustrating bug. TIA! Po Lu, is this a known issue with the PGTK build? If not, any suggestions for debugging?