mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
move the check for an empty queue up during cycle
This commit is contained in:
parent
aac16013d2
commit
20c1113fdd
4
client.c
4
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) :
|
||||
|
Loading…
Reference in New Issue
Block a user