about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-27 13:28:26 +0200
committerarg@mig29 <unknown>2006-10-27 13:28:26 +0200
commit0f395c1b115280a0976a85940c714152d8a58dac (patch)
tree5c5bbe75eea20f4fdc4e1e69d7a5a17d53dca467
parent2b13e7466f4912e3778bf59e6aec3065443f08fe (diff)
downloaddwm-0f395c1b115280a0976a85940c714152d8a58dac.tar.gz
applied sanders try2 patch
-rw-r--r--client.c6
-rw-r--r--dwm.h2
-rw-r--r--event.c2
-rw-r--r--view.c3
4 files changed, 6 insertions, 7 deletions
diff --git a/client.c b/client.c
index d04692d..0409671 100644
--- a/client.c
+++ b/client.c
@@ -209,6 +209,8 @@ manage(Window w, XWindowAttributes *wa) {
 	c->h = wa->height;
 	c->th = bh;
 	updatesize(c);
+	c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
+				c->maxw == c->minw && c->maxh == c->minh);
 	if(c->x + c->w + 2 * BORDERPX > sw)
 		c->x = sw - c->w - 2 * BORDERPX;
 	if(c->x < sx)
@@ -232,9 +234,7 @@ manage(Window w, XWindowAttributes *wa) {
 	updatetitle(c);
 	settags(c, getclient(trans));
 	if(!c->isfloat)
-		c->isfloat = trans
-			|| (c->maxw && c->minw && c->maxh && c->minh &&
-				c->maxw == c->minw && c->maxh == c->minh);
+		c->isfloat = trans || c->isfixed;
 	resizetitle(c);
 	if(clients)
 		clients->prev = c;
diff --git a/dwm.h b/dwm.h
index 7cf168d..850e60b 100644
--- a/dwm.h
+++ b/dwm.h
@@ -83,7 +83,7 @@ struct Client {
 	int grav;
 	long flags; 
 	unsigned int border, weight;
-	Bool isfloat, ismax;
+	Bool isfloat, isfixed, ismax;
 	Bool *tags;
 	Client *next;
 	Client *prev;
diff --git a/event.c b/event.c
index 42a6fc0..0e98f0f 100644
--- a/event.c
+++ b/event.c
@@ -136,7 +136,7 @@ buttonpress(XEvent *e) {
 		}
 		else if(ev->button == Button2)
 			zoom(NULL);
-		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
+		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) && !c->isfixed) {
 			restack();
 			resizemouse(c);
 		}
diff --git a/view.c b/view.c
index facbb4c..85bfabf 100644
--- a/view.c
+++ b/view.c
@@ -45,8 +45,7 @@ static void
 togglemax(Client *c) {
 	XEvent ev;
 		
-	if (x->maxw && x->minw && x->maxh && x->minh &&
-			x->maxw == x->minw && x->maxh == x->minh)
+	if(c->isfixed)
 		return;
 
 	if((c->ismax = !c->ismax)) {
itle='Blame the previous revision' href='/akkartik/mu/blame/011load.cc?h=main&id=7c0d16a79fba21e67d3b46f12f29042f84f997ba'>^
363be37f ^
fe263c52 ^
a316f1e4 ^
fe263c52 ^


ad8e984f ^
14274372 ^





ad8e984f ^
fe263c52 ^
ad8e984f ^
35064671 ^
ad8e984f ^
fe263c52 ^
781f2462 ^

36594a43 ^
14274372 ^


















2d909c71 ^
20d1c905 ^
66b97b4d ^

35064671 ^
a316f1e4 ^
36594a43 ^

de49fb42 ^
20d1c905 ^
36594a43 ^
20d1c905 ^
36594a43 ^


a5840f21 ^
36594a43 ^
0a2026a6 ^



0a2026a6 ^




0a2026a6 ^




36594a43 ^

0a2026a6 ^





0a2026a6 ^
36594a43 ^
0a2026a6 ^
36594a43 ^
0a2026a6 ^
ac0e9db5 ^
781f2462 ^


ac0e9db5 ^
36594a43 ^
05d17773 ^
35064671 ^
0a2026a6 ^




36594a43 ^










35064671 ^
c91d4b7d ^
35064671 ^

decaddb4 ^
363be37f ^

9ea76483 ^
363be37f ^
c91d4b7d ^
35064671 ^
9ea76483 ^
363be37f ^
36594a43 ^





35064671 ^
36594a43 ^
35064671 ^
36594a43 ^

35064671 ^
36594a43 ^
0a2026a6 ^




36594a43 ^





100157d1 ^

36594a43 ^




076f39b8 ^
36594a43 ^













076f39b8 ^
36594a43 ^



a316f1e4 ^

076f39b8 ^
a316f1e4 ^


7232de70 ^
36594a43 ^

100157d1 ^
076f39b8 ^
100157d1 ^
076f39b8 ^
100157d1 ^


36594a43 ^

076f39b8 ^
36594a43 ^

96ac511e ^
7e423e26 ^



7381b17c ^
7e423e26 ^
7381b17c ^
c5e965d8 ^

7381b17c ^
c5e965d8 ^
7e423e26 ^

a316f1e4 ^














286d7620 ^
96f19e1e ^
363be37f ^
99a2c1a7 ^
96f19e1e ^
ac0e9db5 ^
5db2faeb ^

05d17773 ^
96f19e1e ^
f1a6f323 ^
96f19e1e ^

100157d1 ^
518e6c5e ^


100157d1 ^
bc643692 ^
100157d1 ^
35457609 ^
d7494165 ^

100157d1 ^



bc643692 ^
100157d1 ^
35457609 ^
d7494165 ^

100157d1 ^
051c4738 ^
100157d1 ^

bc643692 ^
100157d1 ^

35457609 ^
d7494165 ^

100157d1 ^
051c4738 ^
100157d1 ^
bc643692 ^
100157d1 ^
bc643692 ^
100157d1 ^
35457609 ^
d7494165 ^

35457609 ^
d7494165 ^

100157d1 ^


bc643692 ^
100157d1 ^
35457609 ^
d7494165 ^

100157d1 ^
96ac511e ^

3a787ca7 ^
96ac511e ^
3a787ca7 ^
96ac511e ^
72c4fb2d ^





a4ef18b1 ^

bc643692 ^
a4ef18b1 ^
35457609 ^
d7494165 ^

a4ef18b1 ^
96ac511e ^

bc643692 ^
96ac511e ^
35457609 ^
d7494165 ^


96ac511e ^


bc643692 ^
96ac511e ^
35457609 ^
d7494165 ^



f02842a9 ^


bc643692 ^
f02842a9 ^
35457609 ^
d7494165 ^



0060093e ^


286ca5a4 ^
0060093e ^
286ca5a4 ^
076f39b8 ^










14274372 ^




















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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393