Commit c36563a7 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

imwayland: Use common function to enable text input

Enabling text input needs to send the supported capabilities.
It's easiest to ensure that by using a single enable function.
parent 1bef5f3b
......@@ -578,7 +578,6 @@ released_cb (GtkGestureMultiPress *gesture,
GtkIMContextWayland *context)
GtkInputHints hints;
gboolean result;
if (!global->current)
......@@ -592,11 +591,7 @@ released_cb (GtkGestureMultiPress *gesture,
x, y))
zwp_text_input_v3_enable (global->text_input);
g_signal_emit_by_name (global->current, "retrieve-surrounding", &result);
commit_state (context);
enable (context);
static void
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment