This commit is contained in:
Julien Danjou 2007-09-14 21:20:05 +02:00
parent 9cc12396a1
commit 5801ab0589
1 changed files with 2 additions and 6 deletions

View File

@ -48,11 +48,8 @@ uicb_setnmaster(Display *disp,
if(!arg)
nmaster = awesomeconf->nmaster;
else
{
nmaster = (int) compute_new_value_from_arg(arg, (double) nmaster);
if(nmaster < 0)
if((nmaster = (int) compute_new_value_from_arg(arg, (double) nmaster)) < 0)
nmaster = 0;
}
if(sel)
arrange(disp, drawcontext, awesomeconf);
@ -73,8 +70,7 @@ uicb_setmwfact(Display *disp,
mwfact = awesomeconf->mwfact;
else
{
mwfact = compute_new_value_from_arg(arg, mwfact);
if(mwfact < 0.1)
if((mwfact = compute_new_value_from_arg(arg, mwfact)) < 0.1)
mwfact = 0.1;
else if(mwfact > 0.9)
mwfact = 0.9;