Merge branch 'wip/carlosg/ignore-null-preedit-4.6' into 'gtk-4-6'

imcontextwayland: Ignore preedit updates from NULL to NULL

See merge request GNOME/gtk!4711
This commit is contained in:
Matthias Clasen 2022-05-09 19:57:44 +00:00
commit 2f9387630f

View File

@ -174,6 +174,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));