about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2011-03-23 08:58:57 +0000
committerAnselm R Garbe <anselm@garbe.us>2011-03-23 08:58:57 +0000
commitdd46d5b588dc5d33940bde87817f3e8d608788d4 (patch)
treee58928f792e04e38b2ae8d1f2fb6aee4e46226c1 /dwm.c
parent0bc4e41ebdf4dfbdb4e865ab5297f5df4f0d9e16 (diff)
downloaddwm-dd46d5b588dc5d33940bde87817f3e8d608788d4.tar.gz
applied Hiltjo's multimon mouse-based resize fix
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index be11381..4a8ee32 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1365,8 +1365,8 @@ resizemouse(const Arg *arg) {
 		case MotionNotify:
 			nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
 			nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
-			if(snap && nw >= selmon->wx && nw <= selmon->wx + selmon->ww
-			&& nh >= selmon->wy && nh <= selmon->wy + selmon->wh)
+			if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww
+			&& c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh)
 			{
 				if(!c->isfloating && selmon->lt[selmon->sellt]->arrange
 				&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
2c3429b34ee6'>50d6449 ^
6231e89 ^


50d6449 ^
6231e89 ^
3546d1b ^
50d6449 ^
75ce83d ^
eb75f5e ^
ab2055b ^
50d6449 ^
ab2055b ^
3dd3777 ^

bb3870b ^
3dd3777 ^
bb3870b ^
3dd3777 ^
75ce83d ^
50d6449 ^
206186c ^
ab2055b ^
cd76664 ^
3b520ce ^

3d96bc0 ^
50d6449 ^
ab2055b ^
44546a8 ^
ab2055b ^




50d6449 ^
6b68c18 ^

ab2055b ^



17a3516 ^
ab2055b ^

8b0e9a3 ^
6ca19ae ^
8d36eab ^
ab2055b ^
6b68c18 ^
50d6449 ^
2d6cfa2 ^
9ead276 ^
2d6cfa2 ^

50d6449 ^
6b68c18 ^

5a94a7c ^
6b68c18 ^
50d6449 ^
6b68c18 ^



5a94a7c ^



50d6449 ^
4828d72 ^



2e9db4d ^
6b68c18 ^
76e7658 ^
50d6449 ^
76e7658 ^

6231e89 ^


1adf555 ^
6231e89 ^



6b68c18 ^
50d6449 ^
87a6cec ^
007f721 ^

9bcb43b ^
c8db028 ^
c8ff812 ^
ef0d003 ^
50d6449 ^
c8ff812 ^
007f721 ^
87a6cec ^
80cff73 ^
50d6449 ^
6b68c18 ^
50d6449 ^
cd76664 ^
6b68c18 ^
496131d

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
115
116
117
118
119
120
121
122
123
124
125