decorations: fix handling of SSD/non-SSD windows

Fixup 41a3b68846

Fixes #1841
This commit is contained in:
Tobias Bengfort 2024-05-23 06:53:13 +02:00 committed by Johan Malm
parent 8ce8e93d00
commit 95e4c0d8d7

View file

@ -1254,7 +1254,7 @@ view_set_decorations(struct view *view, enum ssd_mode mode, bool force_ssd)
{
assert(view);
if (force_ssd || !view_wants_decorations(view)
if (force_ssd || view_wants_decorations(view)
|| mode < view_get_ssd_mode(view)) {
view_set_ssd_mode(view, mode);
}