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

imwayland: Fix clearing of preedit text

Fixes terminal emulator misbehaviour as outlined in https://gitlab.gnome.org/GNOME/gtk/issues/1316, which was introduced in 49b17e6c. The original commit cleared preedit text by setting it to an empty string, which still counted as existing preedit. The fix sets preedit string to null, which is correctly understood as not present.
parent 87fa847b
...@@ -654,7 +654,7 @@ gtk_im_context_wayland_focus_out (GtkIMContext *context) ...@@ -654,7 +654,7 @@ gtk_im_context_wayland_focus_out (GtkIMContext *context)
commit_state (context_wayland); commit_state (context_wayland);
/* after disable, incoming state changes won't take effect anyway */ /* after disable, incoming state changes won't take effect anyway */
text_input_preedit (global, global->text_input, "", 0, 0); text_input_preedit (global, global->text_input, NULL, 0, 0);
text_input_preedit_apply (global); text_input_preedit_apply (global);
global->current = NULL; 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