mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
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:
parent
7c294fb5da
commit
08e2f958f0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user