projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b661426
)
removed useless abs() calls
author
arg@mig29
<unknown>
Mon, 30 Oct 2006 11:04:08 +0000
(12:04 +0100)
committer
arg@mig29
<unknown>
Mon, 30 Oct 2006 11:04:08 +0000
(12:04 +0100)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index d0f446f7837466071f8e8b8432fee56ff60eb650..f0e88d07129bfacaa5246166af2c9d64af06a7d8 100644
(file)
--- 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;