fixed visual attach bug

This commit is contained in:
Anselm R. Garbe 2006-02-19 13:52:47 +01:00
parent cedfb3fac5
commit 7adcad7501
1 changed files with 2 additions and 2 deletions

View File

@ -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;