commit 37f8da235362b99e0444b2e7a7bebf9dd0e7c0e7
parent 60db995b44d8e1e139c2a0b6a59a7fc623a34b31
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Fri, 14 Apr 2006 11:35:42 +0200
made place_client more robust against clients with obfuscated sizes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/area.c b/cmd/wm/area.c
@@ -169,8 +169,8 @@ place_client(Area *a, Client *c)
y = fr->rect.y / dy;
maxx = x + fr->rect.width / dx;
maxy = y + fr->rect.height / dy;
- for(j = y; j < maxy; j++)
- for(i = x; i < maxx; i++)
+ for(j = y; j < my && j < maxy; j++)
+ for(i = x; i < mx && i < maxx; i++)
field[j*mx + i] = False;
}