Subject: Re: bug#55411: 29.0.50; handle_one_xevent (xterm.c) incorrectly considers button 8 as a wheel

From: Po Lu <[email-masked]>
Date: Sun, 15 May 2022 09:03:32 +0800

Derek Upham <[email-masked]> writes:

> The handle_one_xevent function in xterm.c has code to re-interpret
> X11 button events as wheel events:
>
>     if (xev->detail >= 4 && xev->detail <= 8)
>       {
>         if (xev->evtype == XI_ButtonRelease)
>           {
>             if (xev->detail <= 5)
>               inev.ie.kind = WHEEL_EVENT;
>             else
>               inev.ie.kind = HORIZ_WHEEL_EVENT;
>
> The current logic assigns buttons 4 and 5 to WHEEL_EVENT, and buttons 6, 7,
> *and* 8 as horizontal wheel events.

Should be fixed now, thanks.  (Also thanks for proving to me that people
still use mice with more than 7 buttons.)