Commit 4b95d740 authored by Matthias Clasen's avatar Matthias Clasen Committed by Daniel Boles

wayland: Don't emit signals if nothing changed

We were emitting a preedit-changed even if the preedit text did
not actually change, causing text views to scroll.

GNOME/gtk#132
GNOME/gtk!83 (comment 93411)
parent 34bcc71f
......@@ -101,6 +101,9 @@ static const GtkIMContextInfo *info_list[] =
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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment