Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
71365a5
)
improving space usage if master is left of stack (default)
author
Anselm R Garbe <
[email protected]
>
Mon, 19 May 2008 13:44:53 +0000
(14:44 +0100)
committer
Anselm R Garbe <
[email protected]
>
Mon, 19 May 2008 13:44:53 +0000
(14:44 +0100)
tile.c
diff
|
blob
|
history
diff --git
a/tile.c
b/tile.c
index
6a58282
..
8269676
100644
(file)
--- a/
tile.c
+++ b/
tile.c
@@
-26,7
+26,7
@@
setmfact(const char *arg) {
void
tile(void) {
void
tile(void) {
- int
y, h
;
+ int
x, y, h, w
;
unsigned int i, n;
Client *c;
unsigned int i, n;
Client *c;
@@
-46,16
+46,18
@@
tile(void) {
return;
/* tile stack */
return;
/* tile stack */
+ x = (tx > c->x + c->w) ? c->x + c->w + 2 * c->bw : tw;
y = ty;
y = ty;
+ w = (tx > c->x + c->w) ? wx + ww - x : tw;
h = th / n;
if(h < bh)
h = th;
for(i = 0, c = nextunfloating(c->next); c; c = nextunfloating(c->next), i++) {
if(i + 1 == n) /* remainder */
h = th / n;
if(h < bh)
h = th;
for(i = 0, c = nextunfloating(c->next); c; c = nextunfloating(c->next), i++) {
if(i + 1 == n) /* remainder */
- tileresize(c,
tx, y, t
w - 2 * c->bw, (ty + th) - y - 2 * c->bw);
+ tileresize(c,
x, y,
w - 2 * c->bw, (ty + th) - y - 2 * c->bw);
else
else
- tileresize(c,
tx, y, t
w - 2 * c->bw, h - 2 * c->bw);
+ tileresize(c,
x, y,
w - 2 * c->bw, h - 2 * c->bw);
if(h != th)
y = c->y + c->h + 2 * c->bw;
}
if(h != th)
y = c->y + c->h + 2 * c->bw;
}