aboutsummaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
author[email protected] <unknown>2006-07-20 16:54:20 +0200
committer[email protected] <unknown>2006-07-20 16:54:20 +0200
commit72707c2fae68f5eba6ea97cbf356bfb968c8a15d (patch)
tree86285130145cd1672f32c9ebe207b9d41bd10032 /tag.c
parentadded yet another CUTOMIZE tag (diff)
downloadseiwm-72707c2fae68f5eba6ea97cbf356bfb968c8a15d.tar.xz
seiwm-72707c2fae68f5eba6ea97cbf356bfb968c8a15d.zip
using double-linked list in order to get correct prev focus handling
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index 5da3c31..21eb9fa 100644
--- 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)
{