From eede70e773d111d979616bdcc485f90854633763 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 20:15:52 +0200 Subject: [PATCH] [tile] Cosmetic Signed-off-by: Julien Danjou --- layouts/tile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/tile.c b/layouts/tile.c index 7276f9f65..a791045fe 100644 --- a/layouts/tile.c +++ b/layouts/tile.c @@ -57,10 +57,7 @@ _tile(int screen, const position_t position) masterwin = MIN(n, curtags[0]->nmaster); - otherwin = n - masterwin; - - if(otherwin < 0) - otherwin = 0; + otherwin = MAX(n - masterwin, 0); if(curtags[0]->nmaster) switch(position) @@ -119,7 +116,9 @@ _tile(int screen, const position_t position) if(real_ncol) win_by_col = otherwin / real_ncol; - if((i - curtags[0]->nmaster) && (i - curtags[0]->nmaster) % win_by_col == 0 && current_col < real_ncol - 1) + if((i - curtags[0]->nmaster) + && (i - curtags[0]->nmaster) % win_by_col == 0 + && current_col < real_ncol - 1) current_col++; if(current_col == real_ncol - 1)