Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
508922b
)
Chris pointed me to the fact, that the window geoms calculation can be done once...
author
Anselm R Garbe <
[email protected]
>
Mon, 11 Feb 2008 20:57:56 +0000
(20:57 +0000)
committer
Anselm R Garbe <
[email protected]
>
Mon, 11 Feb 2008 20:57:56 +0000
(20:57 +0000)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
48e0dd1
..
79a3a33
100644
(file)
--- 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++;
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)) {
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;
if(j == 0) { /* master */
nx = m->wax;
ny = m->way;