[gtk/msvcproj-nmake-install: 17/24] imcontextwayland: Ignore preedit updates from NULL to NULL
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/msvcproj-nmake-install: 17/24] imcontextwayland: Ignore preedit updates from NULL to NULL
- Date: Fri, 13 May 2022 11:36:05 +0000 (UTC)
commit 11cea5c635eff18fd660d985abe5179627a628b1
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 26 12:23:09 2022 +0200
imcontextwayland: Ignore preedit updates from NULL to NULL
If we get consecutive preedit string updates that announce a NULL
string, we still do end up issuing ::preedit-changed with those.
Ignore changes from NULL to NULL, it is the other combinations which
must issue this signal.
modules/input/imwayland.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
index 9b738208d9..1e93123aa2 100644
--- a/modules/input/imwayland.c
+++ b/modules/input/imwayland.c
@@ -171,6 +171,9 @@ text_input_preedit_apply (GtkIMContextWaylandGlobal *global)
return;
context = GTK_IM_CONTEXT_WAYLAND (global->current);
+ if (context->pending_preedit.text == NULL &&
+ context->current_preedit.text == NULL)
+ return;
state_change = ((context->pending_preedit.text == NULL)
!= (context->current_preedit.text == NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]