diff options
author | okan <okan> | 2015-11-10 20:05:33 +0000 |
---|---|---|
committer | okan <okan> | 2015-11-10 20:05:33 +0000 |
commit | e20110f3445ba7f388482f5be7b72a922e548c92 (patch) | |
tree | b9ba53a37e27c9be31431ee065035ade6558710f /client.c | |
parent | 31c74e915752ef1c4ed637a4fd3cee5cd14a7d8b (diff) | |
download | cwm-e20110f3445ba7f388482f5be7b72a922e548c92.tar.gz cwm-e20110f3445ba7f388482f5be7b72a922e548c92.tar.xz cwm-e20110f3445ba7f388482f5be7b72a922e548c92.zip |
Start cleaning up name vs function differences; replace magic numbers.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c index 50e2440..da6d05c 100644 --- a/client.c +++ b/client.c @@ -678,7 +678,7 @@ client_cycle(struct screen_ctx *sc, int flags) oldcc = client_current(); if (oldcc == NULL) - oldcc = (flags & CWM_RCYCLE) ? + oldcc = (flags & CWM_CLIENT_RCYCLE) ? TAILQ_LAST(&sc->clientq, client_ctx_q) : TAILQ_FIRST(&sc->clientq); @@ -686,12 +686,12 @@ client_cycle(struct screen_ctx *sc, int flags) while (again) { again = 0; - newcc = (flags & CWM_RCYCLE) ? client_prev(newcc) : + newcc = (flags & CWM_CLIENT_RCYCLE) ? client_prev(newcc) : client_next(newcc); /* Only cycle visible and non-ignored windows. */ if ((newcc->flags & (CLIENT_HIDDEN | CLIENT_IGNORE)) - || ((flags & CWM_INGROUP) && + || ((flags & CWM_CLIENT_CYCLE_INGRP) && (newcc->gc != oldcc->gc))) again = 1; |