[gtk/gtk-3-24: 1/3] imwayland: Fix clearing of preedit text
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/3] imwayland: Fix clearing of preedit text
- Date: Thu, 13 Sep 2018 01:32:27 +0000 (UTC)
commit c22d5ab9f6ae0782c2a472feb58f3b3acd5a03bc
Author: Dorota Czaplejewicz <dorota czaplejewicz puri sm>
Date: Mon Sep 10 08:32:23 2018 +0000
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.
modules/input/imwayland.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
index 11d09d2007..1fe95f38a1 100644
--- a/modules/input/imwayland.c
+++ b/modules/input/imwayland.c
@@ -654,7 +654,7 @@ 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 (global, global->text_input, NULL, 0, 0);
text_input_preedit_apply (global);
global->current = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]