diff options
author | okan <okan> | 2015-07-12 14:31:47 +0000 |
---|---|---|
committer | okan <okan> | 2015-07-12 14:31:47 +0000 |
commit | c0f2d0cc756f5ec7076946179efe2399f026c60a (patch) | |
tree | fa885c4df0aac7121c711e55631490023ee3f3ee /client.c | |
parent | 671671959360a30e99b6812f132b6f1f0ff0d6e6 (diff) | |
parent | 0d13b7c2205bd40d9fd4db016c8cf96f620c4f8d (diff) | |
download | cwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.tar.gz cwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.tar.xz cwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.zip |
cvsimport
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client.c b/client.c index 7332402..06763e1 100644 --- a/client.c +++ b/client.c @@ -655,7 +655,7 @@ client_cycle(struct screen_ctx *sc, int flags) oldcc = client_current(); if (oldcc == NULL) - oldcc = (flags & CWM_RCYCLE ? + oldcc = ((flags & CWM_RCYCLE) ? TAILQ_LAST(&sc->clientq, client_ctx_q) : TAILQ_FIRST(&sc->clientq)); @@ -663,7 +663,7 @@ client_cycle(struct screen_ctx *sc, int flags) while (again) { again = 0; - newcc = (flags & CWM_RCYCLE ? client_prev(newcc) : + newcc = ((flags & CWM_RCYCLE) ? client_prev(newcc) : client_next(newcc)); /* Only cycle visible and non-ignored windows. */ @@ -707,7 +707,7 @@ client_next(struct client_ctx *cc) struct screen_ctx *sc = cc->sc; struct client_ctx *ccc; - return((ccc = TAILQ_NEXT(cc, entry)) != NULL ? + return(((ccc = TAILQ_NEXT(cc, entry)) != NULL) ? ccc : TAILQ_FIRST(&sc->clientq)); } @@ -717,7 +717,7 @@ client_prev(struct client_ctx *cc) struct screen_ctx *sc = cc->sc; struct client_ctx *ccc; - return((ccc = TAILQ_PREV(cc, client_ctx_q, entry)) != NULL ? + return(((ccc = TAILQ_PREV(cc, client_ctx_q, entry)) != NULL) ? ccc : TAILQ_LAST(&sc->clientq, client_ctx_q)); } |