Adding centered master patches

This commit is contained in:
bakkeby
2019-09-09 21:35:19 +02:00
parent 973d64f51b
commit 637cc50dda
11 changed files with 525 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
void
setcfact(const Arg *arg) {
setcfact(const Arg *arg)
{
float f;
Client *c;
@@ -19,10 +20,11 @@ setcfact(const Arg *arg) {
void
getfacts(Monitor *m, float *mf, float *sf)
{
unsigned int n;
float mfacts = 0, sfacts = 0;
Client *c;
for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) {
for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) {
if (!m->nmaster || n < m->nmaster)
mfacts += c->cfact;
else