emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1e901298e3 1/2: Return an appropriate action when performing unsu


From: Po Lu
Subject: master 1e901298e3 1/2: Return an appropriate action when performing unsupported drop
Date: Wed, 6 Apr 2022 20:57:57 -0400 (EDT)

branch: master
commit 1e901298e3c2324a1da73de474818db51296df40
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Return an appropriate action when performing unsupported drop
    
    * src/xterm.c (x_dnd_send_unsupported_drop): Set action to
    XdndActionPrivate.
---
 src/xterm.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 3b0416722b..274f1e9d9d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -952,7 +952,10 @@ static XRectangle x_dnd_mouse_rect;
    XdndStatus messages from the drop target.
 
    Under Motif, this is changed upon receiving a XmDROP_START message
-   in reply to our own.  */
+   in reply to our own.
+
+   When dropping on a target that doesn't support any drag-and-drop
+   protocol, this is set to the atom XdndActionPrivate.  */
 static Atom x_dnd_action;
 
 /* The action we want the drop target to perform.  The drop target may
@@ -2897,6 +2900,8 @@ x_dnd_send_unsupported_drop (struct x_display_info 
*dpyinfo, Window target_windo
                      x_dnd_n_targets, atom_names))
       return;
 
+  x_dnd_action = dpyinfo->Xatom_XdndActionPrivate;
+
   for (i = x_dnd_n_targets; i > 0; --i)
     {
       targets = Fcons (build_string (atom_names[i - 1]),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]