diff --git a/SOURCES/ibus-hangul-fixes-reset.patch b/SOURCES/ibus-hangul-fixes-reset.patch new file mode 100644 index 0000000..566a1fc --- /dev/null +++ b/SOURCES/ibus-hangul-fixes-reset.patch @@ -0,0 +1,31 @@ +commit b3bbd17e5c557463991a6fb193fcfe299817e542 +Author: Peng Wu +Date: Thu Apr 18 15:05:47 2019 +0800 + + Do not commit text when reset signal is received + + ibus-hangul uses ibus_engine_update_preedit_text_with_mode() to + commit the preedit text by ibus-daemon and now focus-out and + mouse click are handled by ibus-daemon and ibus clients. + + BUG=https://github.com/ibus/ibus/issues/1980 + +Index: ibus-hangul-1.4.2/src/engine.c +=================================================================== +--- ibus-hangul-1.4.2.orig/src/engine.c ++++ ibus-hangul-1.4.2/src/engine.c +@@ -1197,7 +1197,14 @@ ibus_hangul_engine_reset (IBusEngine *en + { + IBusHangulEngine *hangul = (IBusHangulEngine *) engine; + ++ // ibus-hangul uses ++ // ibus_engine_update_preedit_text_with_mode() function which makes ++ // the preedit string committed automatically when the reset is received ++ // So we don't need to commit the preedit here. ++ hangul_ic_reset (hangul->context); ++ ustring_clear (hangul->preedit); + ibus_hangul_engine_flush (hangul); ++ + parent_class->reset (engine); + } + diff --git a/SPECS/ibus-hangul.spec b/SPECS/ibus-hangul.spec index 8f5849b..1290007 100644 --- a/SPECS/ibus-hangul.spec +++ b/SPECS/ibus-hangul.spec @@ -3,7 +3,7 @@ Name: ibus-hangul Version: 1.4.2 -Release: 10%{?dist} +Release: 11%{?dist} Summary: The Hangul engine for IBus input platform License: GPLv2+ Group: System Environment/Libraries @@ -15,6 +15,7 @@ Patch0: ibus-hangul-hangul-toggle.patch # not upstreamed patches Patch1: ibus-hangul-dconf-prefix.patch Patch2: ibus-hangul-setup-abspath.patch +Patch3: ibus-hangul-fixes-reset.patch BuildRequires: gettext-devel, automake, libtool BuildRequires: intltool @@ -38,6 +39,7 @@ libhangul. %patch0 -p1 -b .hangul-toggle %patch1 -p1 -b .dconf-prefix %patch2 -p1 -b .setup-abspath +%patch3 -p1 -b .reset autopoint -f AUTOPOINT='intltoolize --automake --copy' autoreconf -fi @@ -80,6 +82,10 @@ fi %{_datadir}/icons/hicolor/*/apps/* %changelog +* Wed Apr 24 2019 Peng Wu - 1.4.2-11 +- Add ibus-hangul-fixes-reset.patch +- Resolves: rhbz#1612432 + * Thu Aug 7 2014 Daiki Ueno - 1.4.2-10 - Add ibus-hangul-hangul-toggle.patch - Fix bug 1071351 - Cannot switch English input mode and Hangul