adding bar rect to rects_of_view() vector...

This commit is contained in:
Anselm R. Garbe 2006-04-14 10:06:05 +02:00
parent 4d366db25c
commit b9d53efbe1

View File

@ -114,10 +114,10 @@ rects_of_view(View *v, Bool isfloat, unsigned int *num)
*num = 0; *num = 0;
if(isfloat) if(isfloat)
*num = v->area.data[0]->frame.size; *num = v->area.data[0]->frame.size + 1;
else { else {
for(i = 1; i < v->area.size; i++) for(i = 1; i < v->area.size; i++)
*num += v->area.data[i]->frame.size; *num += v->area.data[i]->frame.size + 1;
} }
if(*num) { if(*num) {
@ -133,6 +133,7 @@ rects_of_view(View *v, Bool isfloat, unsigned int *num)
result[n++] = v->area.data[i]->frame.data[j]->rect; result[n++] = v->area.data[i]->frame.data[j]->rect;
} }
} }
result[*num - 1] = brect;
} }
return result; return result;
} }