[mutter/wip/carlosg/im-update-preedit-with-mode: 20/21] clutter: Forward button press/touch down onto ClutterText IM focus
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/im-update-preedit-with-mode: 20/21] clutter: Forward button press/touch down onto ClutterText IM focus
- Date: Fri, 30 Jul 2021 15:18:20 +0000 (UTC)
commit 458e0a96e0f761a585222cd633edb886644e37ff
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 27 16:50:15 2021 +0200
clutter: Forward button press/touch down onto ClutterText IM focus
So these can properly trigger reset of the IM.
clutter/clutter/clutter-text.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c
index 45c7eac56b..4c741101df 100644
--- a/clutter/clutter/clutter-text.c
+++ b/clutter/clutter/clutter-text.c
@@ -2172,6 +2172,9 @@ clutter_text_press (ClutterActor *actor,
clutter_input_focus_set_input_panel_state (priv->input_focus,
CLUTTER_INPUT_PANEL_STATE_TOGGLE);
+ if (clutter_input_focus_is_focused (priv->input_focus))
+ clutter_input_focus_filter_event (priv->input_focus, event);
+
/* if the actor is empty we just reset everything and not
* set up the dragging of the selection since there's nothing
* to select
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]