window: Don't update type hint when it didn't change

This commit is contained in:
Benjamin Otte 2015-07-19 04:39:06 +02:00
parent 7a16039c2d
commit 38a07cde75

View File

@ -3506,6 +3506,9 @@ gtk_window_set_type_hint (GtkWindow *window,
priv = window->priv; priv = window->priv;
if (priv->type_hint == hint)
return;
priv->type_hint = hint; priv->type_hint = hint;
if (gtk_widget_get_mapped (GTK_WIDGET (window))) if (gtk_widget_get_mapped (GTK_WIDGET (window)))