]> git.eshelyaron.com Git - emacs.git/commit
Fix tab-bar scrolling for mice that report mouse-wheel events
authorEli Zaretskii <eliz@gnu.org>
Sat, 11 Sep 2021 10:58:10 +0000 (13:58 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 11 Sep 2021 10:58:10 +0000 (13:58 +0300)
commit2e595b3e8b887068e47e64116d5a910c1045a229
tree021ec40a90715b09b7bd5a95fd161f2d343a13d4
parent140d722848fda03b193f05e716f00eca93b854a8
Fix tab-bar scrolling for mice that report mouse-wheel events

* src/keyboard.c (make_lispy_position): Call
'window_from_coordinates' with last 2 arguments non-zero, to have
it report on tool-bar and tab-bar positions.  Tweak the return
value according to the expectations of 'make_lispy_event'.
(make_lispy_event): No more need to inject "tab-bar" into a click
event on the tab bar: it's already there.
src/keyboard.c