GNU bug report logs - #55411
29.0.50; handle_one_xevent (xterm.c) incorrectly considers button 8 as a wheel

Previous Next

Package: emacs;

Reported by: Derek Upham <derek_upham <at> mailfence.com>

Date: Sat, 14 May 2022 15:29:01 UTC

Severity: normal

Found in version 29.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 55411-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Derek Upham <derek_upham <at> mailfence.com>
Cc: 55411-done <at> debbugs.gnu.org
Subject: Re: 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
Derek Upham <derek_upham <at> 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.)




This bug report was last modified 3 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.