dvtm

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

commit c88334e15119daf3b8b85972794f29805477258a
parent 43dbcaace099757bd12bd714148b0e6a8f3aa07d
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Wed, 20 Nov 2013 12:48:45 +0100

Simplify draw_all

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

diff --git a/dvtm.c b/dvtm.c @@ -292,28 +292,21 @@ draw(Client *c) { } static void -draw_all(bool border) { +draw_all() { Client *c; curs_set(0); for (c = clients; c; c = c->next) { redrawwin(c->window); if (c == sel) continue; - draw_content(c); - if (border) - draw_border(c); - wnoutrefresh(c->window); + draw(c); } /* as a last step the selected window is redrawn, * this has the effect that the cursor position is * accurate */ - if (sel) { - draw_content(sel); - if (border) - draw_border(sel); - wnoutrefresh(sel->window); - } + if (sel) + draw(sel); } static void @@ -322,7 +315,7 @@ arrange() { attrset(NORMAL_ATTR); layout->arrange(); wnoutrefresh(stdscr); - draw_all(true); + draw_all(); } static void @@ -911,7 +904,7 @@ redraw(const char *args[]) { wnoutrefresh(stdscr); doupdate(); resize_screen(); - draw_all(true); + draw_all(); } static void @@ -1037,7 +1030,7 @@ togglemouse(const char *args[]) { static void togglerunall(const char *args[]) { runinall = !runinall; - draw_all(true); + draw_all(); } static void