Introduction
Introduction Statistics Contact Development Disclaimer Help
timproving space usage if master is left of stack (default) - dwm - [fork] cust…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 4a5c8d84dbf410b8b9aa4dc81954568f10ca104f
parent 71365a524f67235024de7db277c63f8ac4f46569
Author: Anselm R Garbe <[email protected]>
Date: Mon, 19 May 2008 14:44:53 +0100
improving space usage if master is left of stack (default)
Diffstat:
M tile.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tile.c b/tile.c
t@@ -26,7 +26,7 @@ setmfact(const char *arg) {
void
tile(void) {
- int y, h;
+ int x, y, h, w;
unsigned int i, n;
Client *c;
t@@ -46,16 +46,18 @@ tile(void) {
return;
/* tile stack */
+ x = (tx > c->x + c->w) ? c->x + c->w + 2 * c->bw : tw;
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)…
if(i + 1 == n) /* remainder */
- tileresize(c, tx, y, tw - 2 * c->bw, (ty + th) - y - 2…
+ tileresize(c, x, y, w - 2 * c->bw, (ty + th) - y - 2 *…
else
- tileresize(c, tx, y, tw - 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;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.