From 1281af5ad5420fc20113179db0a354a768546eba Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Nov 25 2022 04:17:21 +0000 Subject: Update ibus-hangul-gtk4-sync.patch --- diff --git a/ibus-hangul-gtk4-sync.patch b/ibus-hangul-gtk4-sync.patch index 4609c83..4019fce 100644 --- a/ibus-hangul-gtk4-sync.patch +++ b/ibus-hangul-gtk4-sync.patch @@ -1,31 +1,29 @@ -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 +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 -For gtk4 immodule, use synchornized process key event API for gtk4, -and avoid to use forward key event API. +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -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, +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,11 @@ ibus_hangul_engine_process_key_event (IB * * 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) ++ && (hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY_V2) +#endif + ) { if (!retval) { ibus_engine_forward_key_event (engine, orig_keyval, keycode, modifiers); } --- -2.37.1 - diff --git a/ibus-hangul.spec b/ibus-hangul.spec index 9374e0f..7641c9e 100644 --- a/ibus-hangul.spec +++ b/ibus-hangul.spec @@ -3,7 +3,7 @@ Name: ibus-hangul Version: 1.5.4 -Release: 13%{?dist} +Release: 14%{?dist} Summary: The Hangul engine for IBus input platform License: GPLv2+ URL: https://github.com/libhangul/ibus-hangul @@ -90,6 +90,9 @@ make check \ %{_datadir}/installed-tests/ibus-hangul %changelog +* Fri Nov 25 2022 Peng Wu - 1.5.4-14 +- Update ibus-hangul-gtk4-sync.patch + * Tue Aug 23 2022 Peng Wu - 1.5.4-13 - Rebuild the package