diff options
author | Mathieu Lonjaret <mathieu.lonjaret@gmail.com> | 2010-02-18 22:34:37 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-02-18 22:34:37 -0800 |
commit | c4da64274d01d25fe699f888ce7ad6311bf4ef8b (patch) | |
tree | 03d22865627d579dec68c70dfd4d97443a665f4e /src/cmd/rio/client.c | |
parent | 93ee60c3691d2b4699e970d63363500cade26264 (diff) | |
download | plan9port-c4da64274d01d25fe699f888ce7ad6311bf4ef8b.tar.gz plan9port-c4da64274d01d25fe699f888ce7ad6311bf4ef8b.tar.bz2 plan9port-c4da64274d01d25fe699f888ce7ad6311bf4ef8b.zip |
rio: add alt-tab for cycling windows
R=rsc
CC=codebot
http://codereview.appspot.com/207093
Diffstat (limited to 'src/cmd/rio/client.c')
-rw-r--r-- | src/cmd/rio/client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/rio/client.c b/src/cmd/rio/client.c index 58b0697f..c3b36df1 100644 --- a/src/cmd/rio/client.c +++ b/src/cmd/rio/client.c @@ -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); |