From: Po Lu Date: Sun, 27 Mar 2022 05:01:18 +0000 (+0800) Subject: Fix processing of DND grab on non-XI2 builds X-Git-Tag: emacs-29.0.90~1931^2~892 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef94f325577d5eda968b9f22ff2a4a19f7943b10;p=emacs.git Fix processing of DND grab on non-XI2 builds * src/xterm.c (handle_one_xevent): Process DND grab flag correctly. --- 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;