From dc1690ce0fac57ef4c8cd3f0e833cfa07411830f Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Mon, 30 Oct 2006 12:04:08 +0100 Subject: removed useless abs() calls --- event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index d0f446f7..f0e88d07 100644 --- a/event.c +++ b/event.c @@ -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; -- cgit v1.2.3