emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3939a72fcb: Fix detection of wheel movement during drag-and-drop


From: Po Lu
Subject: master 3939a72fcb: Fix detection of wheel movement during drag-and-drop
Date: Mon, 16 May 2022 09:47:51 -0400 (EDT)

branch: master
commit 3939a72fcb5230e86cbe2fb9bcfe00be1dc7bfe0
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix detection of wheel movement during drag-and-drop
    
    * src/xterm.c (x_dnd_send_position): Don't treat Button8 as the
    mouse wheel.
---
 src/xterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 54edefa3c1..aa6cdc5d6e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]