summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChoe Hwanjin <choe.hwanjin@gmail.com>2022-09-09 18:14:01 +0900
committerChoe Hwanjin <choe.hwanjin@gmail.com>2022-09-09 18:37:50 +0900
commit24bf7fc540c9b19bddeeb52e66aeb6140726beb2 (patch)
treedc82afe0e84c7c4b4938733a51fabb02e7d605d7
parent66b5ec4a0973347f3528370806b16c1bfaf56cdd (diff)
parentc3cc3e08c3fe19b62fc4bdb2381ce3f3092c303b (diff)
downloadibus-hangul-24bf7fc540c9b19bddeeb52e66aeb6140726beb2.tar.gz
Merge branch 'gtk4-sync' of https://github.com/epico/ibus-hangul
The wrong input order problem(#42) has been solved in ibus(c957c5f), So we don't need to use 'event-forwarding' workaround for gtk4 client. This MR will detect IBUS_CAP_SYNC_PROCESS_KEY capable ibus client(e.g., gtk4) and disable use-event-forwarding option. https://github.com/libhangul/ibus-hangul/pull/113
-rw-r--r--src/engine.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine.c b/src/engine.c
index 583e402..beb85ae 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -1577,7 +1577,11 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine,
*
* See: https://github.com/choehwanjin/ibus-hangul/issues/40
*/
- if (use_event_forwarding) {
+ if (use_event_forwarding
+#if IBUS_CHECK_VERSION(1, 5, 27)
+ && !(hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY)
+#endif
+ ) {
if (!retval) {
ibus_engine_forward_key_event (engine, orig_keyval, keycode, modifiers);
}