]> git.eshelyaron.com Git - emacs.git/commit
Clean up PGTK code more
authorPo Lu <luangruo@yahoo.com>
Wed, 13 Apr 2022 02:54:56 +0000 (10:54 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 13 Apr 2022 02:54:56 +0000 (10:54 +0800)
commit1c1ae6ba802cc5813fa6f8f90f21050aae6bb459
tree8d9f848a84aad3e9b2a887c21ef5c64b1008f4e2
parentdb56a69274f7690eea2c8d8a12a9c367bb93c4d1
Clean up PGTK code more

* src/pgtkterm.c (STORE_KEYSYM_FOR_DEBUG): Delete macro.
(x_find_modifier_meanings): Delete function.
(get_modifier_values, pgtk_gtk_to_emacs_modifiers)
(pgtk_emacs_to_gtk_modifiers): Use GDK's own modifier mask
constants instead of detecting our own from the keymap.  This
does mean a specific "meta" key will no longer be detected on X
Windows, but that interface doesn't exist on Wayland, and X
users should use the X port anyway.
(key_press_event): Avoid decoding input text.
(pgtk_term_init): Stop computing modifiers.
(syms_of_pgtkterm): Delete obsolete comment.
* src/pgtkterm.h (struct pgtk_display_info): Delete modifier
masks.
src/pgtkterm.c
src/pgtkterm.h