]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix processing of DND grab on non-XI2 builds
authorPo Lu <luangruo@yahoo.com>
Sun, 27 Mar 2022 05:01:18 +0000 (13:01 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 27 Mar 2022 05:01:53 +0000 (13:01 +0800)
* src/xterm.c (handle_one_xevent): Process DND grab flag
correctly.

src/xterm.c

index a99089302969a64a1a8083399560b247b10259cc..099b992d0831ab064c654f992986ee6ca4bfd046 100644 (file)
@@ -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;