dvtm

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

commit 51f357c6e01529943eb344f8b8b947fde2802e55
parent 3371b13ed43df0a43fa430b79a6276a055dbe47a
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Fri,  6 Dec 2013 15:36:09 +0100

Rename is_visible => is_content_visible

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

diff --git a/dvtm.c b/dvtm.c @@ -219,7 +219,7 @@ isarrange(void (*func)()) { } static bool -is_visible(Client *c) { +is_content_visible(Client *c) { if (!c) return false; if (isarrange(fullscreen)) @@ -253,7 +253,7 @@ drawbar() { mvaddch(bar.y, screen.w - 1, ']'); attrset(NORMAL_ATTR); move(y, x); - if (is_visible(sel)) + if (is_content_visible(sel)) curs_set(vt_cursor(sel->term)); wnoutrefresh(stdscr); } @@ -282,7 +282,7 @@ draw_border(Client *c) { if (t) c->title[maxlen] = t; wmove(c->window, y, x); - if (is_visible(sel)) + if (is_content_visible(sel)) curs_set(vt_cursor(sel->term)); } @@ -295,7 +295,7 @@ draw_content(Client *c) { static void draw(Client *c) { - if (is_visible(c)) { + if (is_content_visible(c)) { redrawwin(c->window); draw_content(c); } @@ -613,7 +613,7 @@ keypress(int code) { } for (c = runinall ? clients : sel; c; c = c->next) { - if (is_visible(c)) { + if (is_content_visible(c)) { if (code == '\e') vt_write(c->term, buf, len); else @@ -1438,7 +1438,7 @@ main(int argc, char *argv[]) { c = t; continue; } - if (c != sel && is_visible(c)) { + if (c != sel && is_content_visible(c)) { draw_content(c); wnoutrefresh(c->window); } @@ -1446,7 +1446,7 @@ main(int argc, char *argv[]) { c = c->next; } - if (is_visible(sel)) { + if (is_content_visible(sel)) { draw_content(sel); wnoutrefresh(sel->window); }