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.
This commit is contained in:
Christian Hergert
2021-02-03 16:15:02 -08:00
parent 4ce071721f
commit 461fe36707

View File

@@ -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,