mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Implement touch screen events on PGTK
* etc/NEWS: Better qualify entry for touch screen events. * lisp/loadup.el (featurep 'pgtk): Load touch-screen.el. * lisp/touch-screen.el: Revise list of systems where touch screen events are reported. * src/gtkutil.c (xg_create_frame_widgets): Request GDK_TOUCH_MASK. * src/pgtkfns.c (pgtk_frame_parm_handlers, tip_window): Pacify compiler warning. * src/pgtkterm.c (pgtk_free_frame_resources): Free touch points linked to this frame. (pgtk_link_touch_point, pgtk_unlink_touch_point) (pgtk_unlink_touch_points, pgtk_find_touch_point): New functions, ported from X. (touch_event_cb): New event callback. (pgtk_set_event_handler): Register `touch_event_cb' as handler for `touch-event'. (pgtk_delete_display): Free residual touch points on this display. * src/pgtkterm.h (struct pgtk_touch_point): New structure. (struct pgtk_display_info) <touchpoints>: New field.
This commit is contained in:
parent
b1692e23ed
commit
2b7056db42
7 changed files with 282 additions and 9 deletions
|
|
@ -369,6 +369,7 @@
|
|||
(if (featurep 'pgtk)
|
||||
(progn
|
||||
(load "pgtk-dnd")
|
||||
(load "touch-screen")
|
||||
(load "term/common-win")
|
||||
(load "term/pgtk-win")))
|
||||
(if (fboundp 'x-create-frame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue