]> git.eshelyaron.com Git - emacs.git/commit
Improve input extension focus handling with multiple master devices
authorPo Lu <luangruo@yahoo.com>
Fri, 5 Aug 2022 02:18:18 +0000 (10:18 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 5 Aug 2022 02:18:18 +0000 (10:18 +0800)
commit0dbe0fd4104f4a58908324c1ead365461a4daa16
tree1df736fccd0f7ddc0df1628fc7ccfd56bc1b87bf
parent8ea7506d724903008910bc47e88212da55549ede
Improve input extension focus handling with multiple master devices

* src/xterm.c (x_cache_xi_devices): Initialize device fields to
0.
(xi_handle_focus_change, xi_focus_handle_for_device)
(xi_handle_delete_frame): New functions; store focus information
per-device instead.
(x_detect_focus_change): Handle GenericEvents that way instead.
(handle_one_xevent): Don't cache XI devices on DeviceChanged.
(x_free_frame_resources): Clear any frame focus information.

* src/xterm.h (struct xi_device_t): New fields for focus
tracking.  Add comments describing fields.
src/xterm.c
src/xterm.h