From 5801ab0589eef2767351911cecf5947fb2bfe1a2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Sep 2007 21:20:05 +0200 Subject: [PATCH] cosmetic --- layouts/tile.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/tile.c b/layouts/tile.c index f4b314b45..755a51a9a 100644 --- a/layouts/tile.c +++ b/layouts/tile.c @@ -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;