bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55411: 29.0.50; handle_one_xevent (xterm.c) incorrectly considers bu


From: Po Lu
Subject: bug#55411: 29.0.50; handle_one_xevent (xterm.c) incorrectly considers button 8 as a wheel
Date: Sun, 15 May 2022 09:03:32 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Derek Upham <derek_upham@mailfence.com> 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.)




reply via email to

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