author | arg@mig29 |
Mon, 30 Oct 2006 12:04:08 +0100 | |
changeset 552 | 98a0d10e9918 |
parent 551 | 798b906378d6 |
child 553 | 5094facab5c7 |
--- a/event.c Mon Oct 30 11:58:05 2006 +0100 +++ b/event.c Mon Oct 30 12:04:08 2006 +0100 @@ -52,9 +52,9 @@ c->x = sx; if(abs(c->y) < sy + bh + SNAP) c->y = sy + bh; - if(abs(c->x + c->w) > sx + sw - SNAP) + if(c->x + c->w > sx + sw - SNAP) c->x = sw - c->w - 2 * BORDERPX; - if(abs(c->y + c->h) > sy + sh - SNAP) + if(c->y + c->h > sy + sh - SNAP) c->y = sh - c->h - 2 * BORDERPX; resize(c, False, TopLeft); break;