]> git.eshelyaron.com Git - emacs.git/commit
On X, avoid reporting unrepresentable touch IDs to Lisp
authorPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 05:53:37 +0000 (13:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:04:59 +0000 (19:04 +0200)
commitf07f6e80d5c490616d0b8e099d2018614e7f6536
tree1ca84c7a7247d47bf7c95151f0dfb5f7bf3fe178
parenta9fe52fd3e3be57dc291699eb7849b5ab2c2cad8
On X, avoid reporting unrepresentable touch IDs to Lisp

* src/xterm.c (xi_link_touch_point): Assign a Lisp-representable
identifier to the new touch point and return the same.
(xi_unlink_touch_point): New arg LOCAL_DETAIL.  Return such an
identifier if there is a matching touch point record.
(handle_one_xevent): Adjust as is proper.

* src/xterm.h (struct xi_touch_point_t) <local_detail>:
New field.  Reorder fields for alignment.

(cherry picked from commit b1692e23edc32ce8938d3af200c0c42c8aa6b313)
src/xterm.c
src/xterm.h