dvtm

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

commit 54f0169ed010b0786c50f7aa5db9bd192adeb9be
parent 5655d069b0f9a8d66c8d0d0cf30bf14ddf094a0e
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Sun, 16 Nov 2008 23:58:45 +0100

top stack layout fixes (Claudio M. Alessi)

Diffstat:
tstack.c | 23++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/tstack.c b/tstack.c @@ -17,31 +17,36 @@ tstack(void) { nx = wax, nw = waw; for(i = 0, c = clients; c; c = c->next, i++){ if(i == 0){ /* master */ - ny = wah - mh; + ny = way + wah - mh; nh = mh; - } else { /* tile window */ + } + else { /* tile window */ if(i == 1){ nx = wax; ny = way + m; - nh = wah - mh - ny; + nh = wah - mh - ny + way; } if(i == n - m - 1){ /* last not minimized client */ nw = (wax + waw) - nx; - } else if(i == n - m){ /* first minimized client */ + } + else if(i == n - m) { /* first minimized client */ nx = wax; - ny--; + --ny; nh = 1; nw = waw; - } else if(c->minimized) { /* minimized window */ - ny--; + } + else if(c->minimized) { /* minimized window */ + --ny; nh = 1; nw = waw; - } else /* normal non minimized tile window */ + } + else /* normal non minimized tile window */ nw = tw; + if(i > 1 && !c->minimized){ mvvline(ny, nx, ACS_VLINE, nh); mvaddch(ny, nx, ACS_TTEE); - nx++, nw--; + ++nx, --nw; } }