diff options
author | Christian Hergert <chergert@redhat.com> | 2021-02-03 16:15:02 -0800 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2021-02-09 09:27:22 -0800 |
commit | 461fe36707a346957e4efac56ca504a23bfa2006 (patch) | |
tree | 536ff22109c0bd1ba4be6367b07904e34f8e83b5 | |
parent | 4ce071721febe0853860cd9ad5eebe365ccce56a (diff) | |
download | gtk+-461fe36707a346957e4efac56ca504a23bfa2006.tar.gz |
adwaita: disable shadows when window is maximized or fullscreen
These shadows cause a significant draw performance drop for maximized
windows. Disabling them increases the chances we can have faster scroll
performance of text.
There is some risk here for systems where they have a dock and you expect
the shadow to draw beneath that dock for transparency reasons.
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 5588e4fb40..e7c33f8d19 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -4100,6 +4100,9 @@ window { &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; } } + + &.maximized, + &.fullscreen { box-shadow: none; } } &.maximized, |