clutter: Make ClutterInputFocus API to set panel state explicit

Before we just had API to toggle the OSK panel state. Make this API
generic so the upper layers may set the state as they see fit.
All callers have been updated.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/432
This commit is contained in:
Carlos Garnacho
2019-02-08 22:48:43 +01:00
committed by Carlos Garnacho
parent 033a771e8c
commit 3fd0e23ed9
7 changed files with 14 additions and 10 deletions

View File

@ -549,7 +549,7 @@ text_input_commit_state (struct wl_client *client,
meta_wayland_text_input_reset (text_input);
if (toggle_panel)
clutter_input_focus_request_toggle_input_panel (focus);
clutter_input_focus_set_input_panel_state (focus, CLUTTER_INPUT_PANEL_STATE_TOGGLE);
}
static struct zwp_text_input_v3_interface meta_text_input_interface = {