mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
made place_client more robust against clients with obfuscated sizes
This commit is contained in:
parent
60db995b44
commit
37f8da2353
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user