dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 0e4992ae5d962f2ad0a42dcb1da5a2e7167e7db2
parent 765cdf83282343695ea23eefb7bbfc9b9dad06a4
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 16 Feb 2015 11:00:40 +0100

Always use the full width to display minimized windows

Diffstat:
dvtm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -457,7 +457,7 @@ draw_all(void) { static void arrange(void) { - int m = 0, n = 0; + unsigned int m = 0, n = 0; for (Client *c = nextvisible(clients); c; c = nextvisible(c->next)) { c->order = ++n; if (c->minimized) @@ -476,10 +476,10 @@ arrange(void) { wah--; layout->arrange(); if (m && !isarrange(fullscreen)) { - int nw = waw / m, nx = wax; + unsigned int i = 0, nw = waw / m, nx = wax; for (Client *c = nextvisible(clients); c; c = nextvisible(c->next)) { if (c->minimized) { - resize(c, nx, way+wah, nw, 1); + resize(c, nx, way+wah, ++i == m ? waw - nx : nw, 1); nx += nw; } }