[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6904fcb11d 1/2: Fix incorrect usage of XM_DRAG_SIDE_EFFECT
From: |
Po Lu |
Subject: |
master 6904fcb11d 1/2: Fix incorrect usage of XM_DRAG_SIDE_EFFECT |
Date: |
Sat, 2 Apr 2022 20:53:10 -0400 (EDT) |
branch: master
commit 6904fcb11d76c2ccd8663a81a07bce212e042e95
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix incorrect usage of XM_DRAG_SIDE_EFFECT
* src/xterm.c (xm_send_top_level_leave_message)
(handle_one_xevent): Pass corret alt side effects and flags to
XM_DRAG_SIDE_EFFECT.
---
src/xterm.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 08e3a95633..68b96c13d8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1610,7 +1610,8 @@ xm_send_top_level_leave_message (struct x_display_info
*dpyinfo, Window source,
mmsg.byteorder = XM_TARGETS_TABLE_CUR;
mmsg.side_effects = XM_DRAG_SIDE_EFFECT (xm_side_effect_from_action
(dpyinfo,
x_dnd_wanted_action),
- XM_DROP_SITE_NONE, 0, 0);
+ XM_DROP_SITE_NONE, XM_DRAG_NOOP,
+ XM_DROP_ACTION_DROP_CANCEL);
mmsg.timestamp = dmsg->timestamp;
mmsg.x = 65535;
mmsg.y = 65535;
@@ -14414,7 +14415,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
dmsg.byteorder = XM_TARGETS_TABLE_CUR;
dmsg.side_effects = XM_DRAG_SIDE_EFFECT
(xm_side_effect_from_action (dpyinfo,
x_dnd_wanted_action),
- XM_DROP_SITE_NONE,
0, 0);
+ XM_DROP_SITE_NONE,
XM_DRAG_NOOP,
+
XM_DROP_ACTION_DROP_CANCEL);
dmsg.timestamp = event->xmotion.time;
dmsg.x = event->xmotion.x_root;
dmsg.y = event->xmotion.y_root;
@@ -15865,7 +15867,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
dmsg.side_effects
= XM_DRAG_SIDE_EFFECT (xm_side_effect_from_action
(dpyinfo,
x_dnd_wanted_action),
- XM_DROP_SITE_NONE, 0, 0);
+ XM_DROP_SITE_NONE,
XM_DRAG_NOOP,
+ XM_DROP_ACTION_DROP_CANCEL);
dmsg.timestamp = xev->time;
dmsg.x = lrint (xev->root_x);
dmsg.y = lrint (xev->root_y);