mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-05 00:00:18 +00:00
18 lines
270 B
C
18 lines
270 B
C
void
|
|
setcfact(const Arg *arg)
|
|
{
|
|
float f;
|
|
Client *c;
|
|
|
|
c = selmon->sel;
|
|
|
|
if (!arg || !c || !selmon->lt[selmon->sellt]->arrange)
|
|
return;
|
|
f = arg->f + c->cfact;
|
|
if (arg->f == 0.0)
|
|
f = 1.0;
|
|
else if (f < 0.25 || f > 4.0)
|
|
return;
|
|
c->cfact = f;
|
|
arrange(selmon);
|
|
} |