From 9c83ebfb8098f6ffbb3b440c0ff154186cf78e1a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Dec 2007 18:29:11 +0100 Subject: [PATCH] good fix for ncol = 0, last was wrong --- layouts/tile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/tile.c b/layouts/tile.c index aec4e87f..2d3a8a07 100644 --- a/layouts/tile.c +++ b/layouts/tile.c @@ -129,8 +129,7 @@ _tile(int screen, const Bool right) else mh = mw = 0; - if((real_ncol = MIN(otherwin, curtag->ncol) <= 0)) - real_ncol = 1; + real_ncol = curtag->ncol > 0 ? MIN(otherwin, curtag->ncol) : MIN(otherwin, 1); for(i = 0, c = globalconf.clients; c; c = c->next) {