wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 7adcad7501efac4513558442c238b29d87307ca1
parent cedfb3fac524dc4d2103a551a7a61e9bb2e2a213
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Sun, 19 Feb 2006 13:52:47 +0100

fixed visual attach bug


Diffstat:
cmd/wm/wm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c @@ -245,8 +245,8 @@ map_detached_clients() i = 0; for(ir = 0; ir < rows; ir++) { for(ic = 0; ic < cols; ic++) { - if(!det[i++]) - return; + if(i >= ndet) + return; cr.x = ic * tw + (ic * DEF_PAGER_GAP); cr.y = ir * th + (ir * DEF_PAGER_GAP); cr.width = tw;