]> git.eshelyaron.com Git - emacs.git/commit
Implement support for reporting device names on PGTK
authorPo Lu <luangruo@yahoo.com>
Fri, 8 Apr 2022 05:37:16 +0000 (13:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 8 Apr 2022 05:37:16 +0000 (13:37 +0800)
commitac2708bf6f83dfb965694381c4e9d0c71f61bd0c
tree93c26be2946195cd3380eef81401d33a440a27e8
parente9849939549010529e180ffb2509922f1bcc4843
Implement support for reporting device names on PGTK

* lisp/frame.el (device-class): Add new function.
* lisp/term/pgtk-win.el (pgtk-device-class): New function.
* src/pgtkterm.c (pgtk_device_added_or_removal_cb)
(pgtk_seat_added_cb, pgtk_seat_removed_cb)
(pgtk_enumerate_devices)
(pgtk_free_devices, pgtk_regenerate_devices)
(pgtk_get_device_for_event): New functions.
(mark_pgtkterm): Mark device data.
(pgtk_delete_terminal): Delete device data.
(pgtk_handle_event, key_press_event, note_mouse_movement)
(construct_mouse_click, button_event, scroll_event)
(drag_data_received): Set device correctly.
(pgtk_term_init): Initialize device data and seat tracking.
(pgtk_delete_display): Delete device data.
* src/pgtkterm.h (struct pgtk_device_t): New struct.
(struct pgtk_display_info): New field `devices'.  Delete lots of
unused macros and reformat comments.
lisp/frame.el
lisp/term/pgtk-win.el
src/pgtkterm.c
src/pgtkterm.h