]> git.eshelyaron.com Git - emacs.git/commit
Simplify XI scroll class reporting code
authorPo Lu <luangruo@yahoo.com>
Sat, 5 Nov 2022 11:09:42 +0000 (19:09 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 5 Nov 2022 11:11:29 +0000 (19:11 +0800)
commit154ecf61972fa7277bf9412f2bf34b496338b57d
treeecc26f1d14ad6aaf298948352190dff602d29138
parent8721e87a6ec0874057f83f54498a0e3a64475a53
Simplify XI scroll class reporting code

* src/xterm.c (xi_populate_device_from_info): Use xnmalloc.
Avoid reading classes at all when the XI library only supports
2.0.
(xi_handle_new_classes): New function.
(xi_handle_device_changed): Move class parsing logic there to
avoid duplicating code.
src/xterm.c