[tile] Cosmetic

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-27 20:15:52 +02:00
parent 08b2949e69
commit eede70e773
1 changed files with 4 additions and 5 deletions

View File

@ -57,10 +57,7 @@ _tile(int screen, const position_t position)
masterwin = MIN(n, curtags[0]->nmaster); masterwin = MIN(n, curtags[0]->nmaster);
otherwin = n - masterwin; otherwin = MAX(n - masterwin, 0);
if(otherwin < 0)
otherwin = 0;
if(curtags[0]->nmaster) if(curtags[0]->nmaster)
switch(position) switch(position)
@ -119,7 +116,9 @@ _tile(int screen, const position_t position)
if(real_ncol) if(real_ncol)
win_by_col = otherwin / 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++; current_col++;
if(current_col == real_ncol - 1) if(current_col == real_ncol - 1)