From 3939a72fcb5230e86cbe2fb9bcfe00be1dc7bfe0 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 16 May 2022 21:46:30 +0800 Subject: [PATCH] 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 54edefa3c15..aa6cdc5d6e5 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; -- 2.39.2