]> git.eshelyaron.com Git - emacs.git/commit
Improve touch-screen support on PGTK
authorPo Lu <luangruo@yahoo.com>
Sat, 1 Jun 2024 13:27:51 +0000 (21:27 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:05:01 +0000 (19:05 +0200)
commit303d61e9c2c336bb7b5fba6fbe46cd1b92785c7c
treeac1d28858fd4e5ace7513e659268aaf8dce28045
parent0040320ebe05e292ca460f3938d59aff01ec482e
Improve touch-screen support on PGTK

* lisp/touch-screen.el (touch-screen-translate-touch): Do not
prepend posn if the symbol is such that keyboard.c will do so
immediately after returning.

* src/pgtkterm.c (pgtk_toolkit_position): Remove mistakenly
ported code.
(pgtk_create_terminal): Remove toolkit_position hook.
(motion_notify_event, button_event): Ignore emulated pointer
events, and apply an additional test to circumvent a GDK
oversight.
(touch_event_cb): Correct return type, and provide touch
sequence initialization and removal events as
`last_click_event's.

(cherry picked from commit 7af5d6fc9a352d4f53f8e48a6bc9ae9a3bf235a3)
lisp/touch-screen.el
src/pgtkterm.c