diff --git a/fcitx-password-visible-on-clutter-entry.patch b/fcitx-password-visible-on-clutter-entry.patch new file mode 100644 index 0000000..9082d1c --- /dev/null +++ b/fcitx-password-visible-on-clutter-entry.patch @@ -0,0 +1,19 @@ +diff -Npur fcitx-4.2.8.3/src/frontend/gtk2/fcitximcontext-gio.c fcitx-4.2.8.3-new/src/frontend/gtk2/fcitximcontext-gio.c +--- fcitx-4.2.8.3/src/frontend/gtk2/fcitximcontext-gio.c 2013-09-28 16:33:14.000000000 +0800 ++++ fcitx-4.2.8.3-new/src/frontend/gtk2/fcitximcontext-gio.c 2014-05-07 04:55:07.227490523 +0800 +@@ -971,7 +971,14 @@ _fcitx_im_context_set_capacity(FcitxIMCo + if (GTK_IS_ENTRY (widget) && + !gtk_entry_get_visibility (GTK_ENTRY (widget))) { + flags |= CAPACITY_PASSWORD; +- } ++ } else { ++#if GTK_CHECK_VERSION(3, 6, 0) ++ GtkInputPurpose purpose; ++ g_object_get(fcitxcontext, "input-purpose", &purpose, NULL); ++ if (purpose == GTK_INPUT_PURPOSE_PASSWORD) ++ flags |= CAPACITY_PASSWORD; ++#endif ++ } + } + + gboolean update = FALSE; diff --git a/fcitx.changes b/fcitx.changes index ff31bba..fd0aade 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 05:24:03 UTC 2014 - dliang@suse.com + +- Add fcitx-password-visible-on-clutter-entry.patch (bnc#875890) + + ------------------------------------------------------------------- Thu May 1 14:14:02 UTC 2014 - i@marguerite.su diff --git a/fcitx.spec b/fcitx.spec index aacf04f..adba9ed 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -37,6 +37,7 @@ Source10: input.svgz #PATCH-FEATURE-OPENSUSE marguerite@opensuse.org To support sougou IM, we need a context # variable to disable punc on the fly Patch: fcitx-context-variable-disable-punc-on-the-fly.patch +Patch1: fcitx-password-visible-on-clutter-entry.patch BuildRequires: cairo-devel %if 0%{?suse_version} BuildRequires: dbus-1-devel @@ -387,6 +388,7 @@ You can either use this package for download from kde-look.org using knewstaff i %prep %setup -q -n %{name}-%{version} %patch -p1 +%patch1 -p1 # hack to fix incompatibility of gtk-query-immodules-2.0 (bnc#845860) %if %suse_version < 1310 sed -i \