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:
9fb6502
)
patched resizemouse according to sanders remark
author
arg@mmvi
<unknown>
Fri, 22 Sep 2006 09:24:01 +0000
(11:24 +0200)
committer
arg@mmvi
<unknown>
Fri, 22 Sep 2006 09:24:01 +0000
(11:24 +0200)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index 1939cd5e961a56f6acae333a11cc4539de9de330..86c48191b2d28ab12b5afdfba328d1be9c0ea1cd 100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-108,9
+108,9
@@
resizemouse(Client *c) {
case MotionNotify:
XSync(dpy, False);
if((nw = abs(ocx - ev.xmotion.x)))
- c->w =
abs(ocx - ev.xmotion.x)
;
+ c->w =
nw
;
if((nh = abs(ocy - ev.xmotion.y)))
- c->h =
abs(ocy - ev.xmotion.y)
;
+ c->h =
nh
;
c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
if(ocx <= ev.xmotion.x)