about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-02-11 20:57:56 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-02-11 20:57:56 +0000
commit954db46bac481fd3f514f7af50d2af7e73fb9115 (patch)
tree273aaff3a573f56f13b9712b260497d9d4dc75e7 /dwm.c
parent508922b90db66b88cfb66e81b8d48065d13f6bc1 (diff)
downloaddwm-954db46bac481fd3f514f7af50d2af7e73fb9115.tar.gz
Chris pointed me to the fact, that the window geoms calculation can be done once for each monitor, so I applied this remark
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 48e0dd1..79a3a33 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1724,12 +1724,13 @@ tile(void) {
 		for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
 			n++;
 
+		/* window geoms */
+		mw = (n == 1) ? m->waw : m->mwfact * m->waw;
+		th = (n > 1) ? m->wah / (n - 1) : 0;
+		if(n > 1 && th < bh)
+			th = m->wah;
+
 		for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
-			/* window geoms */
-			mw = (n == 1) ? m->waw : m->mwfact * m->waw;
-			th = (n > 1) ? m->wah / (n - 1) : 0;
-			if(n > 1 && th < bh)
-				th = m->wah;
 			if(j == 0) { /* master */
 				nx = m->wax;
 				ny = m->way;
3d8aac886e5f6f1d358030b98fcdd884d6'>a05fc53 ^
e1e9099 ^
5a1e127 ^
a05fc53 ^
8cef86f ^


5a1e127 ^

fad69ef ^
5a1e127 ^












6b73ff7 ^

5a1e127 ^
8cef86f ^
a05fc53 ^








c9e3cb2 ^






a05fc53 ^
a05fc53 ^
fad69ef ^
5a1e127 ^


a05fc53 ^

5a1e127 ^





fad69ef ^
5a1e127 ^



a05fc53 ^

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