mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Start cleaning up name vs function differences; replace magic numbers.
This commit is contained in:
6
client.c
6
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user