aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-04-03 13:32:25 +0800
committerPo Lu2022-04-03 13:32:25 +0800
commit35928918d1406e61a982e7a036cc6c441484b4cc (patch)
treebdc3810de64c1be34619c4d88ed5f9028d10027d /src
parentf229710d41e85752bc1a835bae56c055a62813d9 (diff)
downloademacs-35928918d1406e61a982e7a036cc6c441484b4cc.tar.gz
emacs-35928918d1406e61a982e7a036cc6c441484b4cc.zip
Look for DND proxies on the root window as well
* src/xterm.c (x_dnd_get_target_window): If nothing was found on the COW, look at the root window.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8a7a49c8837..e7c671de744 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2653,8 +2653,23 @@ x_dnd_get_target_window (struct x_display_info *dpyinfo,
2653 } 2653 }
2654#endif 2654#endif
2655 2655
2656 /* No toplevel was found and the overlay window was not a proxy, 2656 /* Now look for an XdndProxy on the root window. */
2657 so return None. */ 2657
2658 proxy = x_dnd_get_window_proxy (dpyinfo, dpyinfo->root_window);
2659
2660 if (proxy != None)
2661 {
2662 proto = x_dnd_get_window_proto (dpyinfo, dpyinfo->root_window);
2663
2664 if (proto != -1)
2665 {
2666 *proto_out = proto;
2667 return proxy;
2668 }
2669 }
2670
2671 /* No toplevel was found and the overlay and root windows were
2672 not proxies, so return None. */
2658 *proto_out = -1; 2673 *proto_out = -1;
2659 return None; 2674 return None;
2660 } 2675 }