From c3cc3e08c3fe19b62fc4bdb2381ce3f3092c303b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 4 Aug 2022 16:10:24 +0800 Subject: [PATCH] Use synchornized process key event API for gtk4 For gtk4 immodule, use synchornized process key event API for gtk4, and avoid to use forward key event API. --- src/engine.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Index: ibus-hangul-1.5.4/src/engine.c =================================================================== --- ibus-hangul-1.5.4.orig/src/engine.c +++ ibus-hangul-1.5.4/src/engine.c @@ -1577,7 +1577,7 @@ ibus_hangul_engine_process_key_event (IB * * See: https://github.com/choehwanjin/ibus-hangul/issues/40 */ - if (use_event_forwarding) { + if (use_event_forwarding && !(hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY)) { if (!retval) { ibus_engine_forward_key_event (engine, orig_keyval, keycode, modifiers); }