GtkWindow: Manually set CSD should enable shadow width calculation

If CSD is enabled with shadow even though it "shouldn't"*, the width
should still be calculated correctly. This fixes a regression caused by
b1e5ad469c.

* gtk_window_should_use_csd () returns false

https://bugzilla.gnome.org/show_bug.cgi?id=748615
This commit is contained in:
Jonas Ådahl 2015-05-07 23:06:32 +08:00 committed by Matthias Clasen
parent 7c294fb5da
commit 08e2f958f0

View File

@ -6542,7 +6542,7 @@ get_shadow_width (GtkWidget *widget,
*shadow_width = border;
if (!priv->decorated ||
!gtk_window_should_use_csd (window) ||
(!gtk_window_should_use_csd (window) && !priv->client_decorated) ||
!gtk_window_supports_client_shadow (window))
return;