aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorStefan Monnier2024-01-29 09:35:09 -0500
committerStefan Monnier2024-04-05 17:04:34 -0400
commitd859856869f06bf6372370556303ea27c6b0e0e9 (patch)
treec826d616a368f64bfd554b9c528ee8b3765b2f8a /modules
parent7a41de3d515077e3895fe9201d7786134c82ca26 (diff)
downloademacs-scratch/mouse-wheel-buttons.tar.gz
emacs-scratch/mouse-wheel-buttons.zip
(mouse-wheel-buttons): Map old-style wheel buttons to actual wheel eventsscratch/mouse-wheel-buttons
Change the handling of the old X11 convention to use mouse-4/5/6/7 events to represent wheel events: instead of asking downstream packages to use the `mouse-wheel-*-event` variables to know which events represent wheel events, use new var `mouse-wheel-buttons` to directly convert those events into the standard `wheel-up/down/left/right` events used everywhere else. This will simplify the work of packages which can thus just bind their commands to `wheel-up/down/left/right`. * lisp/mouse.el (mouse-wheel-buttons): New custom variable. * src/keyboard.c (make_lispy_event): Adjust for "wheel-clicks" on the tab-bar. * src/xterm.c (x_construct_mouse_click): Add `xi2` argument and obey `mouse-wheel-buttons` variable. (handle_one_xevent): Adjust calls accordingly. (syms_of_xterm): Define the `mouse-wheel-buttons` and the `wheel-up/down/left/right`symbols. * lisp/xt-mouse.el: Don't require `mwheel` any more. (xterm-mouse--same-button-p): Delete function. (xterm-mouse--read-event-sequence): Use `mouse-wheel-buttons`. * lisp/mwheel.el (mouse-wheel-up-event, mouse-wheel-down-event) (mouse-wheel-left-event, mouse-wheel-right-event): Make obsolete. (mouse-wheel-obey-old-style-wheel-buttons): Delete variable.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions