vanitygaps: replaced smartgaps with smartgaps_fact, allowing gaps to be increased when there is only one client.

This commit is contained in:
bakkeby
2021-04-16 10:16:04 +02:00
parent 4a45f23643
commit 23c76d13b5
3 changed files with 5 additions and 3 deletions

View File

@ -185,8 +185,8 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
Client *c;
for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
if (smartgaps && n == 1) {
oe = 0; // outer gaps disabled when only one client
if (n == 1) {
oe *= smartgaps_fact; // outer gaps disabled or multiplied when only one client
}
*oh = m->gappoh*oe; // outer horizontal gap