diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-04-22 18:04:10 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-04-23 15:04:30 +0200 |
commit | b4952c1199ccfbaabc934840988c4fd1846da79f (patch) | |
tree | b9ece8bff1c9e19fa11b8e966c96fa5febb8a380 | |
parent | a9a890164a7bc8af94037e589dd72ed63a123b29 (diff) | |
download | mutter-b4952c1199ccfbaabc934840988c4fd1846da79f.tar.gz |
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.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2384>
-rw-r--r-- | clutter/clutter/clutter-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c index aa06c37a5..3fab98b4e 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); } |