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#71656: secondary selection and mouse-drag-secondary-pasting is broken in 29.3 under wayland Date: Thu, 20 Jun 2024 07:36:34 +0300 Message-ID: <86sex8nsbx.fsf@gnu.org> References: <481481.1718825584@dash.ant.isi.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71656@debbugs.gnu.org To: John Heidemann , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 20 06:39:19 2024 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 1sK9Zv-0007QG-Iz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jun 2024 06:39:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sK9Zb-0003sN-UV; Thu, 20 Jun 2024 00:38:59 -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 1sK9Za-0003rx-Ef for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:38:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sK9Za-0007aF-6n for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:38:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sK9Zd-0008F1-Q1 for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 00:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jun 2024 04:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71656 X-GNU-PR-Package: emacs Original-Received: via spool by 71656-submit@debbugs.gnu.org id=B71656.171885834131673 (code B ref 71656); Thu, 20 Jun 2024 04:39:01 +0000 Original-Received: (at 71656) by debbugs.gnu.org; 20 Jun 2024 04:39:01 +0000 Original-Received: from localhost ([127.0.0.1]:42887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK9Zc-0008Em-RN for submit@debbugs.gnu.org; Thu, 20 Jun 2024 00:39:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK9Za-0008EW-CK for 71656@debbugs.gnu.org; Thu, 20 Jun 2024 00:38:59 -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 1sK9XJ-0007Mp-P9; Thu, 20 Jun 2024 00:36:37 -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=y4BU1GZLbKJPflGXVyo7ke+S1IC7Cz933MZUJ5rSVUY=; b=dLEbe3cp5FDy sZQJeFn9l5IGta+kzlq61DTvWOCjecyMZrbTllDM05tNzdFYsn/8+SkRe49TFTS/POPojrVkr1L2T 8XB9htom8m3VgfpUDVus2mVkkbr2DHZ46JUsOT2HoCW38WtRj9SGVKBMr60KcT1uDLHURuNBx7Nvt 7FWruOXgkea2sW061SbXdt9dqF1VOQwCbFW0IOYlQ4g2dMPNEYEH2a8qo4Ep3E4NmklTqNHLEhAVS r8/7H89b0XM09mXYLbnM9P5TZLBlozqoZPvgMPUpib5Ax64bF1HJr9Jxfqil0mBTGxFLKynwPy76e bzTZEvIppCmvEFJvskilPg==; In-Reply-To: <481481.1718825584@dash.ant.isi.edu> (message from John Heidemann on Wed, 19 Jun 2024 12:33:04 -0700) 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:287523 Archived-At: > From: John Heidemann > Date: Wed, 19 Jun 2024 12:33:04 -0700 > > Since Fedora 40 and emacs-29.3, mouse-drag-secondary-pasting has thrown > the error "Could not assert ownership over selection: SECONDARY". > > This is in a default Fedora 40 install with the emacs-29.3-6.fc40.x86_64 > package, running under Wayland. I think F40 started using native > wayland and gtk, which perhaps lost support for secondary selections? > > > To reproduce: > > start emacs -q > > In *scratch* run: > > (require 'mouse-copy) > (global-set-key [M-down-mouse-1] 'mouse-drag-secondary-pasting) > > Then hold down meta and right click and drag over a word. > > Expected behavior: > > The text you drag over should be copied to the current location. > > Actual behavior: > error "Could not assert ownership over selection: SECONDARY" > and no copying happens. > > > I was the original author of mouse-copy.el and I miss its easy > plan-9-like copy what I just moused over. > > I'm happy to patch its code, but I'd like to know what changed so I can > know what I need to work around. > > > Thanks for any pointers, Thanks. Po Lu, can you please look into and fix this, or help John fix it?