diff options
author | arg@mig29 <unknown> | 2006-10-30 12:04:08 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-10-30 12:04:08 +0100 |
commit | dc1690ce0fac57ef4c8cd3f0e833cfa07411830f (patch) | |
tree | 1c458532f3e648957066149e31aa3b754831bb41 /event.c | |
parent | b6614261ea48c9711cefd79601e09fa764ee3075 (diff) |
removed useless abs() calls
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,9 +52,9 @@ movemouse(Client *c) { 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; |