Hello community, here is the log from the commit of package mozc for openSUSE:Factory checked in at 2015-10-06 13:25:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozc (Old) and /work/SRC/openSUSE:Factory/.mozc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mozc" Changes: -------- --- /work/SRC/openSUSE:Factory/mozc/mozc.changes 2015-08-19 09:29:43.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mozc.new/mozc.changes 2015-10-06 13:25:30.000000000 +0200 @@ -1,0 +2,8 @@ +Tue Sep 22 14:36:03 UTC 2015 - [email protected] + +- Fix ibus-mozc does not allow to remove tha last character + of preedit text on Qt5 application + * workaround for the Qt5 bug (boo#947013) + * Add ibus-qt5-hide_preedit_text-workaround.patch + +------------------------------------------------------------------- New: ---- ibus-qt5-hide_preedit_text-workaround.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozc.spec ++++++ --- /var/tmp/diff_new_pack.47fRdx/_old 2015-10-06 13:25:32.000000000 +0200 +++ /var/tmp/diff_new_pack.47fRdx/_new 2015-10-06 13:25:32.000000000 +0200 @@ -78,6 +78,10 @@ Patch4: protobuf-generic-atomic.patch Patch5: protobuf-atomic.patch +# PATCH-FIX-OPENSUSE [email protected] +# workaround for the Qt5 bug (boo#947013) +Patch6: ibus-qt5-hide_preedit_text-workaround.patch + BuildRequires: llvm-clang BuildRequires: ninja >= 1.4 BuildRequires: pkgconfig @@ -177,6 +181,8 @@ cd .. popd +%patch6 -p1 + # fix installation path sed -e 's|@libdir@|%{_libdir}|g' %{SOURCE4} > ibus-setup-mozc-jp.desktop ++++++ ibus-qt5-hide_preedit_text-workaround.patch ++++++ --- mozc-2.16.2037.102/unix/ibus/preedit_handler.cc.org 2015-03-04 15:36:31.902548226 +0900 +++ mozc-2.16.2037.102/unix/ibus/preedit_handler.cc 2015-09-22 23:14:48.097972613 +0900 @@ -123,13 +123,12 @@ PreeditHandler::~PreeditHandler() { bool PreeditHandler::Update(IBusEngine *engine, const commands::Output &output) { - if (!output.has_preedit()) { - ibus_engine_hide_preedit_text(engine); - return true; - } + // Send an empty IBusText if has_preedit() is false + // because Qt5 does not support hide_preedit_text IBusText *text = ComposePreeditText(output.preedit()); ibus_engine_update_preedit_text_with_mode(engine, text, CursorPos(output), - TRUE, IBUS_ENGINE_PREEDIT_COMMIT); + output.has_preedit(), + IBUS_ENGINE_PREEDIT_COMMIT); // |text| is released by ibus_engine_update_preedit_text. return true; }
