mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
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:
parent
c82ce07d80
commit
f043fd532d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user