Update ibus-hangul-gtk4-sync.patch

This commit is contained in:
Peng Wu 2022-11-25 12:17:21 +08:00
parent bed1381a70
commit 1281af5ad5
2 changed files with 17 additions and 16 deletions

View File

@ -1,31 +1,29 @@
From c3cc3e08c3fe19b62fc4bdb2381ce3f3092c303b Mon Sep 17 00:00:00 2001 From 705dd2553695e47b638cb79d52cfbff03136b227 Mon Sep 17 00:00:00 2001
From: Peng Wu <alexepico@gmail.com> From: Takao Fujiwara <tfujiwar@redhat.com>
Date: Thu, 4 Aug 2022 16:10:24 +0800 Date: Fri, 16 Sep 2022 17:01:15 +0900
Subject: [PATCH] Use synchornized process key event API for gtk4 Subject: [PATCH] Change the definition of IBUS_CAP_SYNC_PROCESS_KEY
For gtk4 immodule, use synchornized process key event API for gtk4, After the new proces key event is integrated in ibus-x11,
and avoid to use forward key event API. 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 +++++- src/engine.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-) 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/engine.c b/src/engine.c Index: ibus-hangul-1.5.4/src/engine.c
index 583e402..beb85ae 100644 ===================================================================
--- a/src/engine.c --- ibus-hangul-1.5.4.orig/src/engine.c
+++ b/src/engine.c +++ ibus-hangul-1.5.4/src/engine.c
@@ -1577,7 +1577,11 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine, @@ -1577,7 +1577,11 @@ ibus_hangul_engine_process_key_event (IB
* *
* See: https://github.com/choehwanjin/ibus-hangul/issues/40 * See: https://github.com/choehwanjin/ibus-hangul/issues/40
*/ */
- if (use_event_forwarding) { - if (use_event_forwarding) {
+ if (use_event_forwarding + if (use_event_forwarding
+#if IBUS_CHECK_VERSION(1, 5, 27) +#if IBUS_CHECK_VERSION(1, 5, 27)
+ && !(hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY) + && (hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY_V2)
+#endif +#endif
+ ) { + ) {
if (!retval) { if (!retval) {
ibus_engine_forward_key_event (engine, orig_keyval, keycode, modifiers); ibus_engine_forward_key_event (engine, orig_keyval, keycode, modifiers);
} }
--
2.37.1

View File

@ -3,7 +3,7 @@
Name: ibus-hangul Name: ibus-hangul
Version: 1.5.4 Version: 1.5.4
Release: 13%{?dist} Release: 14%{?dist}
Summary: The Hangul engine for IBus input platform Summary: The Hangul engine for IBus input platform
License: GPLv2+ License: GPLv2+
URL: https://github.com/libhangul/ibus-hangul URL: https://github.com/libhangul/ibus-hangul
@ -90,6 +90,9 @@ make check \
%{_datadir}/installed-tests/ibus-hangul %{_datadir}/installed-tests/ibus-hangul
%changelog %changelog
* Fri Nov 25 2022 Peng Wu <pwu@redhat.com> - 1.5.4-14
- Update ibus-hangul-gtk4-sync.patch
* Tue Aug 23 2022 Peng Wu <pwu@redhat.com> - 1.5.4-13 * Tue Aug 23 2022 Peng Wu <pwu@redhat.com> - 1.5.4-13
- Rebuild the package - Rebuild the package