Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fcitx5-gtk for openSUSE:Factory checked in at 2022-10-01 17:44:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fcitx5-gtk (Old) and /work/SRC/openSUSE:Factory/.fcitx5-gtk.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fcitx5-gtk" Sat Oct 1 17:44:10 2022 rev:6 rq:1007449 version:5.0.19 Changes: -------- --- /work/SRC/openSUSE:Factory/fcitx5-gtk/fcitx5-gtk.changes 2022-09-22 14:50:11.418476633 +0200 +++ /work/SRC/openSUSE:Factory/.fcitx5-gtk.new.2275/fcitx5-gtk.changes 2022-10-01 17:44:35.169826131 +0200 @@ -1,0 +2,8 @@ +Sat Oct 1 13:19:07 UTC 2022 - Marguerite Su <[email protected]> + +- update version 5.0.19 + * workaround GTK4 bug 5200 that affects input method engines that + commit strings and keep the state at the same time. specifically + hangul / table(wubi etc) in chinese-addons and some m17n engines + +------------------------------------------------------------------- Old: ---- fcitx5-gtk-5.0.18.tar.xz New: ---- fcitx5-gtk-5.0.19.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fcitx5-gtk.spec ++++++ --- /var/tmp/diff_new_pack.tWgifL/_old 2022-10-01 17:44:35.657827019 +0200 +++ /var/tmp/diff_new_pack.tWgifL/_new 2022-10-01 17:44:35.665827034 +0200 @@ -17,7 +17,7 @@ Name: fcitx5-gtk -Version: 5.0.18 +Version: 5.0.19 Release: 0 Summary: Gtk im module for fcitx5 and glib based dbus client library License: LGPL-2.1-or-later ++++++ fcitx5-gtk-5.0.18.tar.xz -> fcitx5-gtk-5.0.19.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-gtk-5.0.18/CMakeLists.txt new/fcitx5-gtk-5.0.19/CMakeLists.txt --- old/fcitx5-gtk-5.0.18/CMakeLists.txt 2022-08-30 04:17:34.478459400 +0200 +++ new/fcitx5-gtk-5.0.19/CMakeLists.txt 2022-09-26 20:08:53.114789200 +0200 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.6) -project(fcitx5-gtk VERSION 5.0.18) +project(fcitx5-gtk VERSION 5.0.19) find_package(ECM REQUIRED 1.0.0) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-gtk-5.0.18/gtk4/fcitximcontext.cpp new/fcitx5-gtk-5.0.19/gtk4/fcitximcontext.cpp --- old/fcitx5-gtk-5.0.18/gtk4/fcitximcontext.cpp 2022-06-30 06:09:22.981732600 +0200 +++ new/fcitx5-gtk-5.0.19/gtk4/fcitximcontext.cpp 2022-09-22 19:25:28.002977800 +0200 @@ -125,6 +125,8 @@ int offset_from_cursor, guint nchars, FcitxIMContext *context); +static void _fcitx_im_context_commit_string(FcitxIMContext *context, + const char *str); static void _fcitx_im_context_commit_string_cb(FcitxGClient *client, char *str, void *user_data); static void _fcitx_im_context_forward_key_cb(FcitxGClient *client, guint keyval, @@ -1087,6 +1089,10 @@ static void fcitx_im_context_reset(GtkIMContext *context) { FcitxIMContext *fcitxcontext = FCITX_IM_CONTEXT(context); + if (fcitxcontext->ignore_reset) { + return; + } + if (fcitx_g_client_is_valid(fcitxcontext->client)) { fcitx_g_client_reset(fcitxcontext->client); } @@ -1188,10 +1194,16 @@ return return_value; } +void _fcitx_im_context_commit_string(FcitxIMContext *context, const char *str) { + context->ignore_reset = TRUE; + g_signal_emit(context, _signal_commit_id, 0, str); + context->ignore_reset = FALSE; +} + void _fcitx_im_context_commit_string_cb(FcitxGClient *, char *str, void *user_data) { FcitxIMContext *context = FCITX_IM_CONTEXT(user_data); - g_signal_emit(context, _signal_commit_id, 0, str); + _fcitx_im_context_commit_string(context, str); // Better request surrounding after commit. g_idle_add_full(G_PRIORITY_DEFAULT_IDLE, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-gtk-5.0.18/gtk4/fcitximcontextprivate.h new/fcitx5-gtk-5.0.19/gtk4/fcitximcontextprivate.h --- old/fcitx5-gtk-5.0.18/gtk4/fcitximcontextprivate.h 2022-02-21 05:57:07.743776000 +0100 +++ new/fcitx5-gtk-5.0.19/gtk4/fcitximcontextprivate.h 2022-09-22 19:20:19.453791000 +0200 @@ -39,6 +39,8 @@ GHashTable *handled_events; GQueue *handled_events_list; + gboolean ignore_reset; + fcitx::gtk::Gtk4InputWindow *candidate_window; };
