Fix layouts

This commit is contained in:
speediegq 2022-10-14 14:39:55 +02:00
parent 42f8873ead
commit f15701a71e
3 changed files with 7 additions and 0 deletions

View file

@ -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++;

View file

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

View file

@ -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 */