[mutter/wip/carlosg/input-method-fixes: 4/6] clutter: Reset ClutterInputFocus on focus_out
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-method-fixes: 4/6] clutter: Reset ClutterInputFocus on focus_out
- Date: Sat, 23 Apr 2022 13:05:57 +0000 (UTC)
commit 91d23e265e824a605544a7555bb2ad5ce565f01a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 22 18:04:10 2022 +0200
clutter: Reset ClutterInputFocus on focus_out
Focus changes should trigger an IM reset, as some engines do want
to maybe commit the preedit buffer before changing focus. Since
the preedit string is also cleared on reset(), we can do without
that explicit call.
clutter/clutter/clutter-text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c
index aa06c37a52..3fab98b4e9 100644
--- a/clutter/clutter/clutter-text.c
+++ b/clutter/clutter/clutter-text.c
@@ -3193,7 +3193,7 @@ clutter_text_key_focus_out (ClutterActor *actor)
if (priv->editable && clutter_input_focus_is_focused (priv->input_focus))
{
- clutter_text_set_preedit_string (CLUTTER_TEXT (actor), NULL, NULL, 0);
+ clutter_input_focus_reset (priv->input_focus);
clutter_input_method_focus_out (method);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]