window: Reinstate logic for should_use_csd()

The old should_use_csd() function would return FALSE if the GTK_CSD
environment variable is unset; the change in commit c5e5ee6749
made it return TRUE if GTK_CSD is unset. This has a cascade effect
on the window size, which causes invalid rectangles to bubble down
to Pixman.

https://bugzilla.gnome.org/show_bug.cgi?id=751140
This commit is contained in:
Emmanuele Bassi 2015-06-18 14:48:58 +01:00
parent c82ce07d80
commit f043fd532d

View File

@ -4079,8 +4079,7 @@ gtk_window_can_use_csd (GtkWindow *window)
csd_env = g_getenv ("GTK_CSD");
/* If GTK_CSD is unset we default to CSD support */
return csd_env == NULL || (strcmp (csd_env, "1") == 0);
return (g_strcmp0 (csd_env, "1") == 0);
}
static void