wmii

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

commit 325bd1be5e337711545ecfb777406136dcacfdd4
parent 8fd81a61076651a9e12d9aa59828b9f2ef213c28
Author: Sander van Dijk <sander@wmii.de>
Date:   Tue, 11 Apr 2006 20:33:09 +0000

fixes the crash on M-S-space I was experiencing (checking order was wrong)


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

diff --git a/cmd/wm/area.c b/cmd/wm/area.c @@ -183,8 +183,8 @@ place_client(Area *a, Client *c) for(y = 0; y < my; y++) for(x = 0; x < mx; x++) { if(field[y*mx + x]) { - for(i = x; field[y*mx + i] && (i < mx); i++); - for(j = y; field[j*mx + x] && (j < my); j++); + for(i = x; (i < mx) && field[y*mx + i]; i++); + for(j = y; (j < my) && field[j*mx + x]; j++); if((i - x) * (j - y) > (p2.x - p1.x) * (p2.y - p1.y)) { p1.x = x; p1.y = y;