From 705dd2553695e47b638cb79d52cfbff03136b227 Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Fri, 16 Sep 2022 17:01:15 +0900 Subject: [PATCH] Change the definition of IBUS_CAP_SYNC_PROCESS_KEY After the new proces key event is integrated in ibus-x11, IBUS_CAP_SYNC_PROCESS_KEY capability is now set the sync mode only since ibus-hangul requires forward-key-event for the sync mode only. --- src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index beb85ae..3db22fb 100644 --- a/src/engine.c +++ b/src/engine.c @@ -1578,8 +1578,8 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine, * See: https://github.com/choehwanjin/ibus-hangul/issues/40 */ if (use_event_forwarding -#if IBUS_CHECK_VERSION(1, 5, 27) - && !(hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY) +#if IBUS_CHECK_VERSION(1, 5, 28) + && (hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY_V2) #endif ) { if (!retval) {