Merge branch 'im-wayland-reset' into 'master'

wayland: Don't emit signals if nothing changed

See merge request GNOME/gtk!83
This commit is contained in:
Matthias Clasen 2018-03-30 20:14:40 +00:00
commit f78598dd9b

View File

@ -84,6 +84,9 @@ static GtkIMContextWaylandGlobal *global = NULL;
static void
reset_preedit (GtkIMContextWayland *context)
{
if (context->preedit.text == NULL)
return;
g_clear_pointer (&context->preedit.text, g_free);
context->preedit.cursor_idx = 0;
g_signal_emit_by_name (context, "preedit-changed");