about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 11:24:01 +0200
committerarg@mmvi <unknown>2006-09-22 11:24:01 +0200
commitb2cb925d999f0b745f8be23316258c4f575cb343 (patch)
treeb2c4e38957ca2acb257dc4ccfacd5fc850093932
parent9fb6502b3b8c2293cc41c73516446e45670f40ed (diff)
downloaddwm-b2cb925d999f0b745f8be23316258c4f575cb343.tar.gz
patched resizemouse according to sanders remark
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 1939cd5..86c4819 100644
--- 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)
d42fba23b99a07cf18f35ae25a3121765f'>0c3544d ^
e6cbe9c ^
0c3544d ^


e6cbe9c ^
e743836 ^

0c3544d ^


901b3ed ^
1076f2b

901b3ed ^
0c3544d ^
72655f0 ^





901b3ed ^
72655f0 ^





















1549faf ^



























ba59bc8 ^
1549faf ^

eb184e0 ^
1549faf ^
0c3544d ^
0e5c819 ^












0c3544d ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114