dvtm

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

commit c6490aef6e56eeaf6fa4853fb7f0d23137d588d9
parent bce1368e2b8f453d89c8883a37374455134d6dbc
Author: Klemens Nanni <kl3@posteo.org>
Date:   Sat,  8 Oct 2016 22:24:54 +0200

Simplify if statements

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

diff --git a/dvtm.c b/dvtm.c @@ -446,9 +446,8 @@ draw_all(void) { if (!isarrange(fullscreen)) { for (Client *c = nextvisible(clients); c; c = nextvisible(c->next)) { - if (c == sel) - continue; - draw(c); + if (c != sel) + draw(c); } } /* as a last step the selected window is redrawn, @@ -1824,10 +1823,9 @@ main(int argc, char *argv[]) { doupdate(); r = pselect(nfds + 1, &rd, NULL, NULL, NULL, &emptyset); - if (r == -1 && errno == EINTR) - continue; - if (r < 0) { + if (errno == EINTR) + continue; perror("select()"); exit(EXIT_FAILURE); }