Fix detection of wheel movement during drag-and-drop

* src/xterm.c (x_dnd_send_position): Don't treat Button8 as the
mouse wheel.
This commit is contained in:
Po Lu 2022-05-16 21:46:30 +08:00
parent c44908c059
commit 3939a72fcb

View 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;