]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Motif drag-and-drop on servers without XI2
authorPo Lu <luangruo@yahoo.com>
Sun, 3 Apr 2022 00:52:26 +0000 (08:52 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 3 Apr 2022 00:52:26 +0000 (08:52 +0800)
* src/xterm.c (handle_one_xevent): Pass right flags to the
receiver when handling drops for core button events.

src/xterm.c

index 68b96c13d872fd9b1b1b134a81038678b6db0f30..8a7a49c8837f4c79d0ed30d9bfd41aa4d512808e 100644 (file)
@@ -14977,7 +14977,9 @@ 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_VALID, XM_DRAG_NOOP,
+                                                    XM_DROP_SITE_VALID,
+                                                    xm_side_effect_from_action (dpyinfo,
+                                                                                x_dnd_wanted_action),
                                                     (!x_dnd_xm_use_help
                                                      ? XM_DROP_ACTION_DROP
                                                      : XM_DROP_ACTION_DROP_HELP));