]> git.eshelyaron.com Git - emacs.git/commit
Simplify scroll valuator reset handling
authorPo Lu <luangruo@yahoo.com>
Fri, 28 Oct 2022 12:06:06 +0000 (20:06 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 28 Oct 2022 12:06:06 +0000 (20:06 +0800)
commit879c65a5fca4b543806c9b854e8a5ac3a99e172f
treef278f75a114b060887873c5054a311549a64ff52
parent90caddc98605e6dbf46be721f4a9ac8a72e8d7ac
Simplify scroll valuator reset handling

* src/xterm.c (xi_populate_device_from_info)
(xi_reset_scroll_valuators_for_device_id, xi_handle_device_changed)
(handle_one_xevent):
* src/xterm.h (struct xi_scroll_valuator_t): Get rid of
`pending_enter_reset', which was extremely convoluted and kept
hitting server bugs.  Now, valuators are reset upon all crossing
events.
src/xterm.c
src/xterm.h