]> git.eshelyaron.com Git - emacs.git/commit
Simplify XI event state conversion
authorPo Lu <luangruo@yahoo.com>
Fri, 24 Jun 2022 01:49:14 +0000 (09:49 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 24 Jun 2022 01:49:14 +0000 (09:49 +0800)
commitab203b0ce26f4989c7fc80185207c6c40bbfa5fe
treeb1f012d44e31b49b94bb3208fa5f68bd6a5d176b
parentf7e73716316d0256ac1584348009a79c81d11e56
Simplify XI event state conversion

* src/xterm.c (xi_convert_button_state, xi_convert_event_state):
New functions.
(handle_one_xevent): Reduce duplicate code for converting XI
state and button state into X state.
src/xterm.c