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




commit 1bd062747d3406fd51c85b8554baa666372f8fd2
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 80e53ea32f..08d17f6ce8 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]