[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 35928918d1: Look for DND proxies on the root window as well
From: |
Po Lu |
Subject: |
master 35928918d1: Look for DND proxies on the root window as well |
Date: |
Sun, 3 Apr 2022 01:32:37 -0400 (EDT) |
branch: master
commit 35928918d1406e61a982e7a036cc6c441484b4cc
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/xterm.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 8a7a49c883..e7c671de74 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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 35928918d1: Look for DND proxies on the root window as well,
Po Lu <=