From 629f2efb8361619f8c5b67ea61860d4358aefe87 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Dec 2007 12:48:42 +0100 Subject: [PATCH] bug fix in focus_get_latest_client_for_tags: restore tags on each roll --- focus.c | 3 ++- tag.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/focus.c b/focus.c index d29d6c32..5c6e926f 100644 --- a/focus.c +++ b/focus.c @@ -99,9 +99,10 @@ static Client * focus_get_latest_client_for_tags(Tag **t) { FocusList *fl; + Tag **tags; for(fl = globalconf.focus; fl; fl = fl->prev) - for(; *t; t++) + for(tags = t; *tags; tags++) if(is_client_tagged(fl->client, *t)) return fl->client; diff --git a/tag.c b/tag.c index d515530d..9ebc87ab 100644 --- a/tag.c +++ b/tag.c @@ -91,6 +91,7 @@ is_client_tagged(Client *c, Tag *t) for(tc = globalconf.tclink; tc; tc = tc->next) if(tc->client == c && tc->tag == t) return True; + return False; }