mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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:
commit
f78598dd9b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user