[scratch] Fix scratch client does not get focus in task list (FS#142)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Sebastian Stark 2008-04-01 09:01:37 +02:00 committed by Julien Danjou
parent 4bfcfc5a9b
commit 4ae523c531
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ focus_get_latest_client_for_tags(Tag **t, int nindex)
int i = 0;
for(node = globalconf.focus; node; node = node->next)
if(node->client && !node->client->skip && node->client != globalconf.scratch.client)
if(node->client && !node->client->skip
&& node->client != globalconf.scratch.client
|| globalconf.scratch.isvisible)
for(tags = t; *tags; tags++)
if(is_client_tagged(node->client, *tags))
{