rio: add alt-tab for cycling windows
R=rsc CC=codebot http://codereview.appspot.com/207093
This commit is contained in:
parent
93ee60c369
commit
c4da64274d
2 changed files with 10 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue