summaryrefslogtreecommitdiffhomepage
path: root/patch/vanitygaps.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-09-09 19:11:31 +0200
committerbakkeby <[email protected]>2019-09-09 19:11:31 +0200
commit9081aef7485d4d201ff0531e913702586e04929e (patch)
treed4b1ea24ce89710179a30119945e5d3b9e43712b /patch/vanitygaps.c
parentcccb8fcecb1e6bce06bec81557d9d3a37631561f (diff)
downloaddwm-flexipatch-9081aef7485d4d201ff0531e913702586e04929e.tar.gz
dwm-flexipatch-9081aef7485d4d201ff0531e913702586e04929e.zip
Adding gappless grid layout
Diffstat (limited to 'patch/vanitygaps.c')
-rw-r--r--patch/vanitygaps.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/patch/vanitygaps.c b/patch/vanitygaps.c
index b8c1557..b46944d 100644
--- a/patch/vanitygaps.c
+++ b/patch/vanitygaps.c
@@ -107,26 +107,12 @@ incrivgaps(const Arg *arg)
}
static void
-#if CFACTS_PATCH
-getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc, float *mf, float *sf)
-#else
-getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc )
-#endif // CFACTS_PATCH
+getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
{
unsigned int n, oe = enablegaps, ie = enablegaps;
- #if CFACTS_PATCH
- float mfacts = 0, sfacts = 0;
- #endif // CFACTS_PATCH
Client *c;
- for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) {
- #if CFACTS_PATCH
- if (!m->nmaster || n < m->nmaster)
- mfacts += c->cfact;
- else
- sfacts += c->cfact;
- #endif // CFACTS_PATCH
- }
+ 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
}
@@ -136,8 +122,4 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc )
*ih = m->gappih*ie; // inner horizontal gap
*iv = m->gappiv*ie; // inner vertical gap
*nc = n; // number of clients
- #if CFACTS_PATCH
- *mf = mfacts; // total factor of master area
- *sf = sfacts; // total factor of slave area
- #endif // CFACTS_PATCH
} \ No newline at end of file