GNU bug report logs - #65008
29.1; Feature: dired-mouse-drag-files for Wayland

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Huan Thieu Nguyen <hnguyen@HIDDEN>; dated Wed, 2 Aug 2023 08:07:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 65008 <at> debbugs.gnu.org:


Received: (at 65008) by debbugs.gnu.org; 2 Aug 2023 13:22:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 02 09:22:13 2023
Received: from localhost ([127.0.0.1]:49200 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qRBno-0005Sg-PC
	for submit <at> debbugs.gnu.org; Wed, 02 Aug 2023 09:22:13 -0400
Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]:34370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qRBnm-0005SN-S3
 for 65008 <at> debbugs.gnu.org; Wed, 02 Aug 2023 09:22:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1690982524; bh=aPOjYEqI3NoFVm0NM8jfoBeaBmTgAqmd3Kn4UShnhOw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=LcroG7aPNZTwdyeDDQmwYmnX4OL4Q738NdwtxS0gn3QRqb0Qg7kUDvs2VqYjNZbZoy3O999JAHByKXAYchxpuxINNwb5Wuv7SF5yKCimd7SuLm2MeQe8aqNIOuXXI5Cpu0xArimlaw4MLChH8evlAAD3s9Ss1/biPGbDjP/pd135ZdWqRkgEteXfb2TyT3K4GjAscdNlvvnidyGzB6S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QBAwH5V4grFNgNwsBvXOP7dMcv5qO4hZCPKrWCIJlQhWeewhawPs6JkH0v
 .Ysh1usfZdIgsN9YgyNzVbB3K1h66skuLWgYV6ePz0cy5eWTV8OWaXYLMfagRBzUtZKeM9SVc5bI
 QkCXRiBrHxblptzmpLGQub5u1_7aX3MuksFD3iwmJAd_tdqX.DG4Qw1QCAhE7oluk.VKdpOE5cG8
 j6c4CsenLo9E5a9Emr56zcG.gb4AjTwIRGOPcf8Wxu_nKtFXBgXKgH2daPtz1OVXq5Ho3K9mT5Ya
 sA9gRJAGf7_rgSKQYs_K9gxApIpRbO5TsLJ8yiA2pwC.ndAY2lcbgVZysO42SR45VoRLAOiPt_jL
 988prQl4r1NsPFo35OmZ217tFrTKjyeEmT2R.QFglcbC_NoQSp3iuJWHiJIzgXygoJzqn1cIO11k
 2e5qLLHbb53PbnbwuKTgNFZPGAt0zWH7PBUKKQl_jKF0S_GMWV.nZ97PFJ.sUeLcSAmYhu1wVQWa
 pHixiIOXktQwR5CWXXV11rzgtdNOlQ7jzRe5MWLkSC6vJFvS5fbJ_8gEfulPiARm.YhRJ2UgRp0h
 .UsoUZIOYTb6pROUcVdAG.WHAhush3shI2ndzlPhHvP.R4IbWd7m1v6ijSJnC7YUYkOQLo9cxHIL
 73SFJiGv3a8Gsq7c.WXapjfvKJXUbuZ9cGtZlp6h4QU2QBnGGCiPtBDnfDATHcbXJttwvJnh1l7X
 QD2Ap4TEt2zvAkziG7WbjxMBBEMU3odc9CrqbNyZFjKmOaLcQCBrAVWIGDX1pp0CMEJ7NC2hZMyU
 yuYS6Ck1no8Z7mMdZ0XSEhjqVjksphf9ZH4mBqxXzbe4yM6x_HDktqLeaECO0Gffj
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 6f68a888-ba17-4c80-8959-57c80692a836
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic314.consmr.mail.ne1.yahoo.com with HTTP; Wed, 2 Aug 2023 13:22:04 +0000
Received: by hermes--production-sg3-6b8fc8d58f-jwkjf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 68fa60ab536fe5e2f2bf7fba03ee2b1e; 
 Wed, 02 Aug 2023 13:22:01 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Huan Thieu Nguyen <hnguyen@HIDDEN>
Subject: Re: bug#65008: 29.1; Feature: dired-mouse-drag-files for Wayland
In-Reply-To: <2dc7e650062341cb9a1c560e2199566c@HIDDEN> (Huan Thieu
 Nguyen's message of "Wed, 2 Aug 2023 07:55:29 +0000")
References: <2dc7e650062341cb9a1c560e2199566c@HIDDEN>
Date: Wed, 02 Aug 2023 21:21:56 +0800
Message-ID: <871qgld1fv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21685
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1726
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 65008
Cc: 65008 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Huan Thieu Nguyen <hnguyen@HIDDEN> writes:

> Hi, why does this feature exclude Wayland? It's possible to do with
> GTK3. I might be able to help, but I've only done it with GTK4 which
> changed it a bit <https://docs.gtk.org/gtk4/migrating-3to4.html#switch-to-the-new-drag-and-drop-api>

Patches welcome.  I set out to implement this last year, but found
several severe problems with GDK's crude Wayland drag-and-drop
implementation preventing it from matching Emacs's expectations.

The GDK Wayland backend's drag and drop interface returns a placeholder
window from `gdk_drag_find_window_for_screen', presuming that the
program implementing DND will immediately call `gdk_drag_motion' with
updated drag-and-drop information.  Emacs needs to know exactly which
window is under the pointer (and also the position of the pointer
device) in order to display and position the optional DND tooltip and
possibly cancel DND if the pointer moves back into a frame.

These problems eventually boil down to the inability of Wayland clients
to terminate drags they initiate, and Wayland's refusal to provide the
client with the surface under the pointer during a drag.

As a consequence, Emacs can't return to Lisp when the mouse pointer
returns to the confines of a frame, nor can it quit out of drag and drop
operations.

If you do want to pick up where I left off, keep in mind that Emacs
can't make use of the higher level GTK drag-and-drop interface: it must
employ the GDK drag-and-drop primitives, since only those enable
selection data to be transferred.  You will want to implement the
function `x-begin-drag'; refer to its documentation and the
implementations in xfns.c, ns-win.el and haiku-win.el for more details.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65008; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Aug 2023 08:06:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 02 04:06:44 2023
Received: from localhost ([127.0.0.1]:48816 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qR6sW-0002ro-94
	for submit <at> debbugs.gnu.org; Wed, 02 Aug 2023 04:06:44 -0400
Received: from lists.gnu.org ([2001:470:142::17]:46242)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hnguyen@HIDDEN>) id 1qR6hv-0002ZK-6N
 for submit <at> debbugs.gnu.org; Wed, 02 Aug 2023 03:55:47 -0400
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 <hnguyen@HIDDEN>)
 id 1qR6hm-00089q-4H
 for bug-gnu-emacs@HIDDEN; Wed, 02 Aug 2023 03:55:39 -0400
Received: from mail5.swissbit.com ([148.251.244.252] helo=mail6.swissbit.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <hnguyen@HIDDEN>)
 id 1qR6hk-0001Eh-9m
 for bug-gnu-emacs@HIDDEN; Wed, 02 Aug 2023 03:55:37 -0400
Received: from mail6.swissbit.com (localhost [127.0.0.1])
 by DDEI (Postfix) with ESMTP id 9EBD6222943
 for <bug-gnu-emacs@HIDDEN>; Wed,  2 Aug 2023 09:55:30 +0200 (CEST)
Received: from mail6.swissbit.com (localhost [127.0.0.1])
 by DDEI (Postfix) with ESMTP id 75BA4222937
 for <bug-gnu-emacs@HIDDEN>; Wed,  2 Aug 2023 09:55:30 +0200 (CEST)
X-TM-AS-ERS: 10.181.10.102-127.5.254.253
X-TM-AS-SMTP: 1.0 bXgyLmRtei5zd2lzc2JpdC5jb20= aG5ndXllbkBoeXBlcnN0b25lLmNvb
 Q==
X-DDEI-TLS-USAGE: Used
Received: from mx2.dmz.swissbit.com (mx2.dmz.swissbit.com [10.181.10.102])
 by mail6.swissbit.com (Postfix) with ESMTPS
 for <bug-gnu-emacs@HIDDEN>; Wed,  2 Aug 2023 09:55:30 +0200 (CEST)
From: Huan Thieu Nguyen <hnguyen@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: 29.1; Feature: dired-mouse-drag-files for Wayland
Thread-Topic: 29.1; Feature: dired-mouse-drag-files for Wayland
Thread-Index: AdnFFoewEVl/cbZUR0KqzKBNM/kBcA==
Date: Wed, 2 Aug 2023 07:55:29 +0000
Message-ID: <2dc7e650062341cb9a1c560e2199566c@HIDDEN>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-TMASE-Version: DDEI-5.1-9.0.1002-27788.006
X-TMASE-Result: 10--0.170300-10.000000
X-TMASE-MatchedRID: r52rw5mZIl+FwLGqhAa9VYknvYO5kHSc+KgiyLtJrSC2jcVPXmqqIJ0H
 sPL+Xqra7yZRfw14Dg5/JgN7Aw6tAIbOw5rKls3R7Z4ofcsZ/0vA3uQfVY1UMY6HM5rqDwqt4cG
 oJ8VhBejcoxbcWpHhhNTcVwEaW1CwK9TXvIn5aBWDB0cIFNBGEQ==
X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0
X-TMASE-INERTIA: 0-0;;;;
X-TMASE-XGENCLOUD: cc3c3ddf-f0b2-901e-8b92-8628c07d7ef9-0-0-200-0
Received-SPF: pass client-ip=148.251.244.252;
 envelope-from=hnguyen@HIDDEN; helo=mail6.swissbit.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 02 Aug 2023 04:06:42 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Hi, why does this feature exclude Wayland? It's possible to do with
GTK3. I might be able to help, but I've only done it with GTK4 which
changed it a bit <https://docs.gtk.org/gtk4/migrating-3to4.html#switch-to=
-the-new-drag-and-drop-api>

Hyperstone GmbH | Reichenaustr. 39a  | 78467 Konstanz=0AManaging Director=
: Dr. Jan Peter Berns.=0ACommercial register of local courts: Freiburg HR=
B381782





Acknowledgement sent to Huan Thieu Nguyen <hnguyen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#65008; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Sep 2023 08:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.