wayland: Only update the window title if it actually updated

This makes the protocol log less spammy.

https://bugzilla.gnome.org/show_bug.cgi?id=769937
This commit is contained in:
Jonas Ådahl 2016-07-01 16:51:32 +08:00
parent 8270699119
commit d2a80cd235

View File

@ -2343,6 +2343,9 @@ gdk_wayland_window_set_title (GdkWindow *window,
impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
if (g_strcmp0 (impl->title, title) == 0)
return;
g_free (impl->title);
g_utf8_validate (title, MAX_WL_BUFFER_SIZE, &end);