summaryrefslogtreecommitdiffhomepage
path: root/patch/cfacts.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-03-20 15:20:07 +0100
committerbakkeby <[email protected]>2020-03-20 15:20:07 +0100
commit8047fe257bb95490d5a027a9d3f406f16394108c (patch)
tree6904c41307f54373b6c5049903d991ffce77f21e /patch/cfacts.c
parent143f94cbc2d9d6e4a8432677f2af30be70031a9b (diff)
downloaddwm-flexipatch-8047fe257bb95490d5a027a9d3f406f16394108c.tar.gz
dwm-flexipatch-8047fe257bb95490d5a027a9d3f406f16394108c.zip
Layouts - re-distributing remaining pixels after even split to address #12
Diffstat (limited to 'patch/cfacts.c')
-rw-r--r--patch/cfacts.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/patch/cfacts.c b/patch/cfacts.c
index 82ee560..0307eb6 100644
--- a/patch/cfacts.c
+++ b/patch/cfacts.c
@@ -15,23 +15,4 @@ setcfact(const Arg *arg)
return;
c->cfact = f;
arrange(selmon);
-}
-
-#if BSTACK_LAYOUT || BSTACKHORIZ_LAYOUT || CENTEREDMASTER_LAYOUT || CENTEREDFLOATINGMASTER_LAYOUT || COLUMNS_LAYOUT || DECK_LAYOUT || TILE_LAYOUT
-void
-getfacts(Monitor *m, float *mf, float *sf)
-{
- unsigned int n;
- float mfacts = 0, sfacts = 0;
- Client *c;
-
- for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) {
- if (m->nmaster && n < m->nmaster)
- mfacts += c->cfact;
- else
- sfacts += c->cfact;
- }
- *mf = mfacts; // total factor of master area
- *sf = sfacts; // total factor of slave area
-}
-#endif
+} \ No newline at end of file