From f15701a71edea51b9f70c293763f6df263bd0eb1 Mon Sep 17 00:00:00 2001 From: speediegq Date: Fri, 14 Oct 2022 14:39:55 +0200 Subject: [PATCH] Fix layouts --- layouts.c | 3 +++ speedwm.c | 3 +++ toggle.h | 1 + 3 files changed, 7 insertions(+) diff --git a/layouts.c b/layouts.c index 6e2fea2..45f2e66 100644 --- a/layouts.c +++ b/layouts.c @@ -50,11 +50,14 @@ tile(Monitor *m) void monocle(Monitor *m) { + int oh, ov, ih, iv; Client *c; if (monocleclientcount && !monoclecount) { unsigned int n = 0; + getgaps(m, &oh, &ov, &ih, &iv, &n); + for (c = m->clients; c; c = c->next) if (ISVISIBLE(c)) n++; diff --git a/speedwm.c b/speedwm.c index 513ddd0..2f5d39d 100644 --- a/speedwm.c +++ b/speedwm.c @@ -525,6 +525,9 @@ static void tagmon(const Arg *arg); #if LAYOUT_TILE static void tile(Monitor *m); #endif +#if LAYOUT_DECK +static void deck(Monitor *m); +#endif #if LAYOUT_EMPTY static void empty(Monitor *m); #endif diff --git a/toggle.h b/toggle.h index a3415b4..eef4e47 100644 --- a/toggle.h +++ b/toggle.h @@ -44,6 +44,7 @@ Not compatible with BSDs so for those, set this to 0. */ #define LAYOUT_GRID 1 /* Whether or not to include the grid layout */ #define LAYOUT_FIBO 1 /* Whether or not to include the fibonacci layout */ #define LAYOUT_DWINDLE 1 /* Whether or not to include the dwindle layout */ +#define LAYOUT_DECK 1 /* Whether or not to include the deck layout */ #define LAYOUT_SPIRAL 1 /* Whether or not to include the spiral layout */ #define LAYOUT_BSTACK 1 /* Whether or not to include the bottom stack layout */ #define LAYOUT_BSTACKH 1 /* Whether or not to include the horizontal bottom stack layout */