]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix detection of wheel movement during drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Mon, 16 May 2022 13:46:30 +0000 (21:46 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 16 May 2022 13:47:39 +0000 (21:47 +0800)
* src/xterm.c (x_dnd_send_position): Don't treat Button8 as the
mouse wheel.

src/xterm.c

index 54edefa3c151efec218fda5b608c6e1083ace8cf..aa6cdc5d6e55cf37748ec637683efc0f712e152c 100644 (file)
@@ -3544,7 +3544,7 @@ x_dnd_send_position (struct frame *f, Window target, int supported,
 
   if (supported >= 5)
     {
-      if (button >= 4 && button <= 8)
+      if (button >= 4 && button <= 7)
        {
          msg.xclient.data.l[1] |= (1 << 9);
          msg.xclient.data.l[1] |= (button - 4) << 7;