]> git.lizzy.rs Git - bspwm.git/commitdiff
Honor single_monocle in make_desktop
authorBastien Dejean <nihilhill@gmail.com>
Tue, 19 Feb 2019 14:33:36 +0000 (15:33 +0100)
committerBastien Dejean <nihilhill@gmail.com>
Tue, 19 Feb 2019 14:33:36 +0000 (15:33 +0100)
Fixes #929.

src/desktop.c

index c51e3dbc787f9121accaf38fd50ad9995f179a21..1ea2fc973373bee316201efd2b67c9a703f869d1 100644 (file)
@@ -264,7 +264,8 @@ desktop_t *make_desktop(const char *name, uint32_t id)
        }
        d->prev = d->next = NULL;
        d->root = d->focus = NULL;
-       d->layout = d->user_layout = LAYOUT_TILED;
+       d->user_layout = LAYOUT_TILED;
+       d->layout = single_monocle ? LAYOUT_MONOCLE : LAYOUT_TILED;
        d->padding = (padding_t) PADDING;
        d->window_gap = window_gap;
        d->border_width = border_width;