vanitygaps: replaced smartgaps with smartgaps_fact, allowing gaps to be increased when there is only one client.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user