summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-09-15 15:30:32 +0800
committerPo Lu <luangruo@yahoo.com>2022-09-15 15:30:47 +0800
commit429e61b130232e69531f7d44b2bc610d43c8217d (patch)
treecc6432b4da957e9b23cfe0371d541293b9b9c047 /src/xterm.c
parent1ccfd3bae2dffe5cf33202eb4479f4daf722b265 (diff)
downloademacs-429e61b130232e69531f7d44b2bc610d43c8217d.tar.gz
emacs-429e61b130232e69531f7d44b2bc610d43c8217d.tar.bz2
emacs-429e61b130232e69531f7d44b2bc610d43c8217d.zip
More fixes for XDND proxy support
* src/xterm.c (handle_one_xevent): Check replies against toplevel, not proxy.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 96d25b26434..4c3b8128175 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -17676,7 +17676,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
if (x_dnd_last_protocol_version != -1
&& x_dnd_in_progress
- && target == x_dnd_last_seen_window
+ && target == x_dnd_last_seen_toplevel
/* The XDND documentation is not very clearly worded.
But this should be the correct behavior, since
"kDNDStatusSendHereFlag" in the reference
@@ -20377,7 +20377,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
else if (x_dnd_last_seen_window != None
&& x_dnd_last_protocol_version != -1)
{
- x_dnd_pending_finish_target = x_dnd_last_seen_window;
+ x_dnd_pending_finish_target = x_dnd_last_seen_toplevel;
x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version;
x_dnd_waiting_for_finish
@@ -21914,7 +21914,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
else if (x_dnd_last_seen_window != None
&& x_dnd_last_protocol_version != -1)
{
- x_dnd_pending_finish_target = x_dnd_last_seen_window;
+ x_dnd_pending_finish_target = x_dnd_last_seen_toplevel;
x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version;
x_dnd_waiting_for_finish