]> git.armaanb.net Git - dwm.git/blobdiff - tag.c
using double-linked list in order to get correct prev focus handling
[dwm.git] / tag.c
diff --git a/tag.c b/tag.c
index 5da3c31811a809ea4e5a50254c48a6fea46c2e49..21eb9fa280b760ab36239e839e9d8c03374f99ad 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -140,6 +140,13 @@ getnext(Client *c, unsigned int t)
        return c;
 }
 
+Client *
+getprev(Client *c)
+{
+       for(; c && !c->tags[tsel]; c = c->prev);
+       return c;
+}
+
 void
 heretag(Arg *arg)
 {