diff options
author | Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> | 2020-01-25 20:26:26 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-02-15 13:10:34 +0100 |
commit | 601b7c8edff7e0da5f9564a473b4fb671f12aa34 (patch) | |
tree | a36cdfc38e26db2a9ca0dcbbd3e5f33d749d57a0 /modules | |
parent | fc437410ceccdb5c989179521560546aee4f7c4d (diff) | |
download | gtk+-601b7c8edff7e0da5f9564a473b4fb671f12aa34.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/input/imwayland.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c index d6161ce0af..9b1257a96c 100644 --- a/modules/input/imwayland.c +++ b/modules/input/imwayland.c @@ -578,7 +578,6 @@ released_cb (GtkGestureMultiPress *gesture, GtkIMContextWayland *context) { GtkInputHints hints; - gboolean result; if (!global->current) return; @@ -592,11 +591,7 @@ released_cb (GtkGestureMultiPress *gesture, context->press_x, context->press_y, 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 |