cfacts.c (356B)
1 void 2 setcfact(const Arg *arg) 3 { 4 float f; 5 Client *c; 6 7 c = selmon->sel; 8 9 if (!arg || !c || !selmon->lt[selmon->sellt]->arrange) 10 return; 11 if (!arg->f) 12 f = 1.0; 13 else if (arg->f > 4.0) // set fact absolutely 14 f = arg->f - 4.0; 15 else 16 f = arg->f + c->cfact; 17 if (f < 0.25) 18 f = 0.25; 19 else if (f > 4.0) 20 f = 4.0; 21 c->cfact = f; 22 arrange(selmon); 23 } 24