summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-04-16 10:16:04 +0200
committerbakkeby <[email protected]>2021-04-16 10:16:04 +0200
commit23c76d13b5376e78c268006da57d132883d5df9b (patch)
tree289b1affa1fe791e183760c3e83437dd8b4fd0fa /patch
parent4a45f23643ac6767affaf73f05de606e07c30fbf (diff)
downloaddwm-flexipatch-23c76d13b5376e78c268006da57d132883d5df9b.tar.gz
dwm-flexipatch-23c76d13b5376e78c268006da57d132883d5df9b.zip
vanitygaps: replaced smartgaps with smartgaps_fact, allowing gaps to be increased when there is only one client.
Diffstat (limited to 'patch')
-rw-r--r--patch/vanitygaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/vanitygaps.c b/patch/vanitygaps.c
index bf81669..105ea72 100644
--- a/patch/vanitygaps.c
+++ b/patch/vanitygaps.c
@@ -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