From ef94f325577d5eda968b9f22ff2a4a19f7943b10 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 27 Mar 2022 13:01:18 +0800 Subject: [PATCH] Fix processing of DND grab on non-XI2 builds * src/xterm.c (handle_one_xevent): Process DND grab flag correctly. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index a9908930296..099b992d083 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -13443,7 +13443,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, dnd_grab = true; } - if (dnd_grab && event->xbutton.type == ButtonRelease) + if (!dnd_grab && event->xbutton.type == ButtonRelease) { x_dnd_end_window = x_dnd_last_seen_window; x_dnd_in_progress = false; -- 2.39.2