]> git.eshelyaron.com Git - emacs.git/commit
Correctly handle touches on the tool bar
authorPo Lu <luangruo@yahoo.com>
Tue, 17 Jan 2023 10:28:37 +0000 (18:28 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 17 Jan 2023 10:30:40 +0000 (18:30 +0800)
commitb9025c507a3a7dae4de19b18cafaa09b18183832
treef4c8713acac5af7287a12b7f713611593747c441
parentbb383a54910c3094e5d228e0af62bf70e36203ca
Correctly handle touches on the tool bar

* src/xterm.c (xi_link_touch_point): New argument `frame'.  Set
new field `touchpoint->frame' to it.
(xi_unlink_touch_points): New function.
(xi_disable_devices): Clear the tool bar device on frames whose
tool bar device matches this field.
(handle_one_xevent): If an XI_TouchBegin event lands on the tool
bar, then simulate a pointer click.  Ignore future events from
that touchpoint from there onwards.
(x_make_frame_invisible, x_free_frame_resources): Unlink touch
points associated with the frame.

* src/xterm.h (struct xi_touch_point_t): New field `frame'.
(struct x_output): New fields for keeping track of tool bar
touches.
src/xterm.c
src/xterm.h