]> git.eshelyaron.com Git - emacs.git/commit
Factor out some duplicate code from handle_one_xevent
authorPo Lu <luangruo@yahoo.com>
Tue, 9 Aug 2022 07:43:30 +0000 (15:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 9 Aug 2022 07:44:03 +0000 (15:44 +0800)
commit1dc3ecc6c3cd20d758010ce480a8d6467cbe107f
tree81ad9bdf616d6c4aef3cca2417270ccf10102305
parent2053c6aca170f6ced8928b38328a22604171d8b7
Factor out some duplicate code from handle_one_xevent

* src/xterm.c (xi_disable_devices): New function.
(handle_one_xevent): Use that to disable an array of device IDs
instead of copypasting the same block of code over and over
again.
src/xterm.c