[mutter/wip/carlosg/im-update-preedit-with-mode: 2/3] clutter: Forward button press/touch down onto ClutterText IM focus




commit 4c0cf66f33cb3c5737c9951c0cac82f5788a7d46
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]