Start cleaning up name vs function differences; replace magic numbers.

This commit is contained in:
okan
2015-11-10 20:05:33 +00:00
parent 31c74e9157
commit e20110f344
8 changed files with 170 additions and 149 deletions

View File

@@ -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;