]> git.mdlowis.com Git - proto/labwc.git/commitdiff
decorations: fix handling of SSD/non-SSD windows
authorTobias Bengfort <tobias.bengfort@posteo.de>
Thu, 23 May 2024 04:53:13 +0000 (06:53 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 27 May 2024 13:34:52 +0000 (14:34 +0100)
Fixup 41a3b6884630eb3299aa66c2152f1b639242999e

Fixes #1841

src/view.c

index 8d3d0915c9c5a2d11e3005af97f216b7ca01821b..f79f3e3c7b20a13bf862618b941435e6fd1eb212 100644 (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);
        }