summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
}
#endif
- /* No toplevel was found and the overlay window was not a proxy,
- so return None. */
+ /* Now look for an XdndProxy on the root window. */
+
+ proxy = x_dnd_get_window_proxy (dpyinfo, dpyinfo->root_window);
+
+ if (proxy != None)
+ {
+ proto = x_dnd_get_window_proto (dpyinfo, dpyinfo->root_window);
+
+ if (proto != -1)
+ {
+ *proto_out = proto;
+ return proxy;
+ }
+ }
+
+ /* No toplevel was found and the overlay and root windows were
+ not proxies, so return None. */
*proto_out = -1;
return None;
}