diff options
author | okan <okan> | 2014-09-08 21:24:27 +0000 |
---|---|---|
committer | okan <okan> | 2014-09-08 21:24:27 +0000 |
commit | 20c1113fdd58103b91af9d7b0a24fe575c208fc9 (patch) | |
tree | 385a169f2ddb62041458fc4d146e51744414a8bb | |
parent | aac16013d21fd14ac9e570ffee91a591987c50d1 (diff) | |
download | cwm-20c1113fdd58103b91af9d7b0a24fe575c208fc9.tar.gz cwm-20c1113fdd58103b91af9d7b0a24fe575c208fc9.tar.xz cwm-20c1113fdd58103b91af9d7b0a24fe575c208fc9.zip |
move the check for an empty queue up during cycle
-rw-r--r-- | client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client.c b/client.c index 0b10053..052280b 100644 --- a/client.c +++ b/client.c @@ -639,12 +639,10 @@ client_cycle(struct screen_ctx *sc, int flags) struct client_ctx *oldcc, *newcc; int again = 1; - oldcc = client_current(); - - /* If no windows then you cant cycle */ if (TAILQ_EMPTY(&sc->clientq)) return; + oldcc = client_current(); if (oldcc == NULL) oldcc = (flags & CWM_RCYCLE ? TAILQ_LAST(&sc->clientq, client_ctx_q) : |