OBS-URL: https://build.opensuse.org/request/show/636059 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=327
20 lines
717 B
Diff
20 lines
717 B
Diff
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
|
|
index 11d09d20077a47654a7e048ab5078c8ffe20b8f9..25144f314cc0a4f542d3588c60ba8ed7e32dd15c 100644
|
|
--- a/modules/input/imwayland.c
|
|
+++ b/modules/input/imwayland.c
|
|
@@ -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 */
|
|
- text_input_preedit (global, global->text_input, "", 0, 0);
|
|
- text_input_preedit_apply (global);
|
|
+ if (context_wayland->current_preedit.text)
|
|
+ {
|
|
+ text_input_preedit (global, global->text_input, NULL, 0, 0);
|
|
+ text_input_preedit_apply (global);
|
|
+ }
|
|
|
|
global->current = NULL;
|
|
}
|
|
|