about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)
1bb6cecee69d5167220a18cc4c125c215784de66'>^
756fefb0 ^
9b55f2de ^
a4cadf78 ^
bfbc8edc ^
0fb27dc4 ^
a2726b6a ^
0fb27dc4 ^
5c5b4d70 ^
73f313b9 ^

f4ab1ca9 ^
5f015e32 ^





519cf295 ^

a2726b6a ^


0fb27dc4 ^


bf8b89c5 ^
0fb27dc4 ^

2602cbf7 ^
199162b1 ^
a2726b6a ^
91ee289c ^
a2726b6a ^

4ad69042 ^
fdc5f25f ^
fdc5f25f ^
a2726b6a ^





23485eb4 ^
a2726b6a ^
25eb138d ^
a2726b6a ^
55407ee1 ^
a2726b6a ^






678bff91 ^
a2726b6a ^
fdc5f25f ^
df648ba9 ^
a2726b6a ^


f9216fdd ^
fdc5f25f ^
4711fc62 ^

f4ab1ca9 ^
4711fc62 ^
7a1eb730 ^

73f313b9 ^
2e85f18c ^

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