clutter: Forward button press/touch down onto ClutterText IM focus

So these can properly trigger reset of the IM.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1940>
This commit is contained in:
Carlos Garnacho 2021-07-27 16:50:15 +02:00 committed by Marge Bot
parent 765f41de80
commit f4a32cb7cd

View File

@ -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