GNU bug report logs - #68796
xterm.c: Convert mouse-4/5/6/7 to wheel-up/down/left/right

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Mon, 29 Jan 2024 14:46:01 UTC

Severity: wishlist

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: monnier <at> iro.umontreal.ca, 68796 <at> debbugs.gnu.org
Subject: bug#68796: xterm.c: Convert mouse-4/5/6/7 to wheel-up/down/left/right
Date: Sat, 10 Feb 2024 10:24:32 +0200
Ping!  Can we make some progress here?

> Cc: 68796 <at> debbugs.gnu.org
> Date: Tue, 30 Jan 2024 11:53:58 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> 
> > Hmm... so IIUC you're saying that even when `dpyinfo->supports_xi2` is
> > true, we may receive `mouse-4/5/6/7` events for wheel motions?
> > Yuck!
> 
> Yes, and as always other clients may send whatever they want, although
> Emacs is not obliged to handle those events correctly.
> 
> >> The correct test of event type is whether x_construct_mouse_click is
> >> being called from the XI_ButtonPress or XI_ButtonRelease label in
> >> handle_one_xevent.
> >
> > OK, that sounds fixable.  See additional patch below.
> 
> Thanks.  I'm short on time at the moment, but will get around to this.
> 
> 
> 
> 




This bug report was last modified 1 year and 37 days ago.

Previous Next


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