]> git.eshelyaron.com Git - emacs.git/commit
Pass through caret position from native GTK input methods
authorPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 12:43:17 +0000 (20:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 12:43:17 +0000 (20:43 +0800)
commite91848344e096e23ad00a8a4e58299a33ed82e1c
treee0b2a1066abf0328103a168984ec1a89831525b5
parent59ede5cce8e58eabc479ecca88c0ce67bc4bb928
Pass through caret position from native GTK input methods

* src/gtkutil.c (xg_im_context_preedit_changed): Set caret
position appropriately.
* src/xfns.c (xg_widget_key_press_event_cb): Ignore modifier
keys.
(xic_preedit_caret_callback, xic_preedit_draw_callback):
Constrain caret position to the string length as well.
src/gtkutil.c
src/xfns.c