]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix incorrect usage of XM_DRAG_SIDE_EFFECT
authorPo Lu <luangruo@yahoo.com>
Sun, 3 Apr 2022 00:42:52 +0000 (08:42 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 3 Apr 2022 00:42:52 +0000 (08:42 +0800)
* 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

index 08e3a956336aa9e320180ddad6bc22cd478ee021..68b96c13d872fd9b1b1b134a81038678b6db0f30 100644 (file)
@@ -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);