]> git.eshelyaron.com Git - emacs.git/commit
Add support for setting cursor location using Gtk IM Context
authorYichao Yu <yyc1992@gmail.com>
Sat, 30 Jan 2021 14:20:08 +0000 (23:20 +0900)
committerYuuki Harano <masm+github@masm11.me>
Sat, 30 Jan 2021 14:20:08 +0000 (23:20 +0900)
commit563a0d94c379292bd88e83f18560ed21c497cea9
treeb2fb6a1f72bcad0ec80e89505ee23a4a8d41d878
parente9608601e5d5f45be36a8f833a98230086e628a8
Add support for setting cursor location using Gtk IM Context

The existing XIC implementation doesn't work when using Gtk IM Context.
Instead, `gtk_im_context_set_cursor_location` should be used
to update the cursor information for the input method.

* src/pgtkim.c (pgtk_im_set_cursor_location): New function to tell gtk
cursor location.
* src/pgtkterm.c (pgtk_draw_window_cursor): Remove invalid code and
add new code to call the function.
* src/pgtkterm.h: Add the function declaration.
src/pgtkim.c
src/pgtkterm.c
src/pgtkterm.h