JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
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 5da3c31..21eb9fa 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)
 {