From: Po Lu Date: Mon, 16 May 2022 13:46:30 +0000 (+0800) Subject: Fix detection of wheel movement during drag-and-drop X-Git-Tag: emacs-29.0.90~1910^2~640 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3939a72fcb5230e86cbe2fb9bcfe00be1dc7bfe0;p=emacs.git Fix detection of wheel movement during drag-and-drop * src/xterm.c (x_dnd_send_position): Don't treat Button8 as the mouse wheel. --- 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;