From 72707c2fae68f5eba6ea97cbf356bfb968c8a15d Mon Sep 17 00:00:00 2001 From: "arg@10ksloc.org" Date: Thu, 20 Jul 2006 16:54:20 +0200 Subject: using double-linked list in order to get correct prev focus handling --- tag.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tag.c') 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) { -- cgit v1.2.3