Mitchell Hashimoto f70ba14abd apprt/gtk: handle input methods that end preedit before commit
Fixes #5494

When ibus/fcitx is not running (the GTK "simple" input method is
active), the preedit end event triggers _before_ the commit event. For
both ibus/fcitx, the opposite is true. We were relying on this ordering.

This commit changes the GTK input handling to not rely on this ordering.
Instead, we encode our composing state into the boolean state of whether
a key event is pressed. This happens before ANY input method events are
triggered.

Tested dead key handling on: X11/Wayland, ibus/fcitx/none.
2025-02-03 09:24:29 -08:00
..
2025-02-02 16:35:20 -06:00
2025-01-18 22:47:18 +09:00
2024-09-26 22:00:11 -07:00
2024-10-18 08:11:11 -07:00
2025-01-24 13:48:30 -08:00
2025-01-24 13:48:30 -08:00