bug fix in focus_get_latest_client_for_tags: restore tags on each roll

This commit is contained in:
Julien Danjou 2007-12-28 12:48:42 +01:00
parent 56596cc24d
commit 629f2efb83
2 changed files with 3 additions and 1 deletions

View File

@ -99,9 +99,10 @@ static Client *
focus_get_latest_client_for_tags(Tag **t) focus_get_latest_client_for_tags(Tag **t)
{ {
FocusList *fl; FocusList *fl;
Tag **tags;
for(fl = globalconf.focus; fl; fl = fl->prev) for(fl = globalconf.focus; fl; fl = fl->prev)
for(; *t; t++) for(tags = t; *tags; tags++)
if(is_client_tagged(fl->client, *t)) if(is_client_tagged(fl->client, *t))
return fl->client; return fl->client;

1
tag.c
View File

@ -91,6 +91,7 @@ is_client_tagged(Client *c, Tag *t)
for(tc = globalconf.tclink; tc; tc = tc->next) for(tc = globalconf.tclink; tc; tc = tc->next)
if(tc->client == c && tc->tag == t) if(tc->client == c && tc->tag == t)
return True; return True;
return False; return False;
} }