good fix for ncol = 0, last was wrong

This commit is contained in:
Julien Danjou 2007-12-16 18:29:11 +01:00
parent 077ffb5b43
commit 9c83ebfb80
1 changed files with 1 additions and 2 deletions

View File

@ -129,8 +129,7 @@ _tile(int screen, const Bool right)
else else
mh = mw = 0; mh = mw = 0;
if((real_ncol = MIN(otherwin, curtag->ncol) <= 0)) real_ncol = curtag->ncol > 0 ? MIN(otherwin, curtag->ncol) : MIN(otherwin, 1);
real_ncol = 1;
for(i = 0, c = globalconf.clients; c; c = c->next) for(i = 0, c = globalconf.clients; c; c = c->next)
{ {