about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c7
-rw-r--r--dwm.14
-rw-r--r--dwm.h1
-rw-r--r--event.c17
4 files changed, 8 insertions, 21 deletions
diff --git a/client.c b/client.c
index f92df83..f268623 100644
--- a/client.c
+++ b/client.c
@@ -197,13 +197,6 @@ killclient(Arg *arg)
 }
 
 void
-lower(Client *c)
-{
-	XLowerWindow(dpy, c->title);
-	XLowerWindow(dpy, c->win);
-}
-
-void
 manage(Window w, XWindowAttributes *wa)
 {
 	Client *c;
diff --git a/dwm.1 b/dwm.1
index 5b0be22..a411978 100644
--- a/dwm.1
+++ b/dwm.1
@@ -96,10 +96,6 @@ Moves current
 .B window
 while dragging.
 .TP
-.B Mod1-Button2
-Lowers current
-.B window.
-.TP
 .B Mod1-Button3
 Resizes current
 .B window
diff --git a/dwm.h b/dwm.h
index 57d628a..88640b8 100644
--- a/dwm.h
+++ b/dwm.h
@@ -91,7 +91,6 @@ extern Client *getctitle(Window w);
 extern void gravitate(Client *c, Bool invert);
 extern void higher(Client *c);
 extern void killclient(Arg *arg);
-extern void lower(Client *c);
 extern void manage(Window w, XWindowAttributes *wa);
 extern void resize(Client *c, Bool sizehints, Corner sticky);
 extern void setsize(Client *c);
diff --git a/event.c b/event.c
index b6beed5..0f984f2 100644
--- a/event.c
+++ b/event.c
@@ -127,15 +127,14 @@ buttonpress(XEvent *e)
 		default:
 			break;
 		case Button1:
-			if(!c->ismax && (arrange == dofloat || c->isfloat)) {
-				higher(c);
-				movemouse(c);
+			if(!c->ismax) {
+				if(arrange == dofloat || c->isfloat) {
+					higher(c);
+					movemouse(c);
+				}
+				else
+					zoom(NULL);
 			}
-			else
-				zoom(NULL);
-			break;
-		case Button2:
-			lower(c);
 			break;
 		case Button3:
 			if(!c->ismax && (arrange == dofloat || c->isfloat)) {
@@ -225,7 +224,7 @@ enternotify(XEvent *e)
 	Client *c;
 	XCrossingEvent *ev = &e->xcrossing;
 
-	if(ev->detail == NotifyInferior)
+	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
 		return;
 
 	if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
1076f2b
1076f2b
dba2306 ^
1076f2b

dc5d967 ^
1076f2b
1076f2b







0053620 ^
1076f2b





3399650 ^


dc5d967 ^
3399650 ^
dc5d967 ^
3399650 ^












adaa28a ^










bf35794 ^


a73a882 ^
bf35794 ^









adaa28a ^
3399650 ^
dba2306 ^
3399650 ^
3399650 ^

dc5d967 ^

3399650 ^
c09bf8d ^
3399650 ^



c09bf8d ^
080a38d ^
3399650 ^





c0705ee ^
3399650 ^









e6cbe9c ^
3399650 ^

adaa28a ^

1076f2b
adaa28a ^
1076f2b

dba2306 ^
bf35794 ^


dba2306 ^


4641aa2 ^
dba2306 ^
dc5d967 ^





dba2306 ^

dc5d967 ^
dba2306 ^
4641aa2 ^

1076f2b


0464e42 ^
1076f2b
dc5d967 ^
4970ef9 ^
1076f2b
439e15d ^
dc5d967 ^
1076f2b
4970ef9 ^


1076f2b
4970ef9 ^

1076f2b


dba2306 ^
1076f2b




dba2306 ^

1076f2b

f60c597 ^
1076f2b
dba2306 ^

1076f2b
f60c597 ^
dba2306 ^
1076f2b

c09bf8d ^





1076f2b
1076f2b




29355bd ^
1076f2b
39677ec ^
c0705ee ^



39677ec ^
9cd686c ^



83d2390 ^
9cd686c ^

6458d72 ^
9cd686c ^









eb756ee ^

c0705ee ^
eb756ee ^
9cd686c ^
83d2390 ^
dc5d967 ^
439e15d ^


9cd686c ^
dba2306 ^
1076f2b
0e5c819 ^
e3fd306 ^
0e5c819 ^
4970ef9 ^
5b44976 ^
0e5c819 ^





dba2306 ^
0e5c819 ^
6475be9 ^





0e5c819 ^
4970ef9 ^





c0705ee ^
0e5c819 ^

439e15d ^

1076f2b




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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287