mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
Simplify shadow conditions
The code in gtkwindow.c for dealing with the various combinations of client-side decorations and client-side shadows is entirely too complicated. This commit does not really clean it up, but simplifies one of the shadow conditions far enough to make some sense. With this change, I get the expected decorations in all the cases I can easily reproduce locally.
This commit is contained in:
parent
628d5406d7
commit
1c1c030b8e
@ -4005,9 +4005,8 @@ get_shadow_width (GtkWindow *window,
|
||||
if (!priv->decorated)
|
||||
goto out;
|
||||
|
||||
if (!priv->client_decorated &&
|
||||
!(gtk_window_should_use_csd (window) &&
|
||||
gtk_window_supports_client_shadow (window)))
|
||||
if (!priv->client_decorated ||
|
||||
!priv->use_client_shadow)
|
||||
goto out;
|
||||
|
||||
if (priv->maximized ||
|
||||
|
Loading…
Reference in New Issue
Block a user