dwm-meillo
diff tag.c @ 127:1480e19f6377
using double-linked list in order to get correct prev focus handling
author | arg@10ksloc.org |
---|---|
date | Thu, 20 Jul 2006 16:54:20 +0200 |
parents | b4b8b4236599 |
children | 30d1302dbe3b |
line diff
1.1 --- a/tag.c Thu Jul 20 15:40:41 2006 +0200 1.2 +++ b/tag.c Thu Jul 20 16:54:20 2006 +0200 1.3 @@ -140,6 +140,13 @@ 1.4 return c; 1.5 } 1.6 1.7 +Client * 1.8 +getprev(Client *c) 1.9 +{ 1.10 + for(; c && !c->tags[tsel]; c = c->prev); 1.11 + return c; 1.12 +} 1.13 + 1.14 void 1.15 heretag(Arg *arg) 1.16 {