summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-07-08 10:44:49 +0800
committerPo Lu <luangruo@yahoo.com>2022-07-08 10:44:49 +0800
commitb6a90b71a2e421d3eef52d4d9e9a82592b7ad277 (patch)
treef749abcb30f442ac52795219667699fc221e9a03
parent139eb1f845d1ec3e2a26aec5d7fafbcdcbaa5f07 (diff)
downloademacs-b6a90b71a2e421d3eef52d4d9e9a82592b7ad277.tar.gz
emacs-b6a90b71a2e421d3eef52d4d9e9a82592b7ad277.tar.bz2
emacs-b6a90b71a2e421d3eef52d4d9e9a82592b7ad277.zip
Fix returned action symbol upon "xterm" drop
* src/xterm.c (x_dnd_do_unsupported_drop): Set x_dnd_action_symbol. (x_dnd_begin_drag_and_drop): Don't clear it afterwards.
-rw-r--r--src/xterm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index d057bbf06c2..094449e1d56 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3921,6 +3921,8 @@ x_dnd_do_unsupported_drop (struct x_display_info *dpyinfo,
True, ButtonReleaseMask, &event);
x_stop_ignoring_errors (dpyinfo);
+ x_dnd_action_symbol = QXdndActionPrivate;
+
return;
cancel:
@@ -11873,8 +11875,7 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
XFIXNUM (Fnth (make_fixnum (4),
x_dnd_unsupported_drop_data)),
x_dnd_unsupported_drop_time);
-
- if (SYMBOLP (val))
+ else if (SYMBOLP (val))
x_dnd_action_symbol = val;
x_dnd_unwind_flag = false;