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

imwayland: Fix clearing of preedit text in webkitgtk

Fixes webkitgtk misbehaviour as outlined in , which was introduced in 49b17e6c.
The preedit will be cleared on exit only if it is already present.
parent c22d5ab9
......@@ -654,8 +654,11 @@ gtk_im_context_wayland_focus_out (GtkIMContext *context)
commit_state (context_wayland);
/* after disable, incoming state changes won't take effect anyway */
if (context_wayland->current_preedit.text)
text_input_preedit (global, global->text_input, NULL, 0, 0);
text_input_preedit_apply (global);
global->current = NULL;
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