rio: add alt-tab for cycling windows

R=rsc
CC=codebot
http://codereview.appspot.com/207093
This commit is contained in:
Mathieu Lonjaret 2010-02-18 22:34:37 -08:00 committed by Russ Cox
parent 93ee60c369
commit c4da64274d
2 changed files with 10 additions and 9 deletions

View file

@ -257,15 +257,15 @@ shuffle(int up)
if(clients == 0 || clients->next == 0)
return;
if(up){
if(!up){
c = 0;
/*for(c=clients; c->next; c=c->next) */
/* ; */
for(l=&clients; (*l)->next; l=&(*l)->next)
;
c = *l;
*l = 0;
c->next = clients;
clients = c;
if ((*l)->state == 1)
c = *l;
if (c == 0)
return;
XMapRaised(dpy, c->parent);
top(c);
active(c);