From 4ae523c531877647b4f41f16078c0aa9b24dfa8f Mon Sep 17 00:00:00 2001 From: Sebastian Stark Date: Tue, 1 Apr 2008 09:01:37 +0200 Subject: [PATCH] [scratch] Fix scratch client does not get focus in task list (FS#142) Signed-off-by: Julien Danjou --- focus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/focus.c b/focus.c index 8c6a40585..bf1cde7f6 100644 --- a/focus.c +++ b/focus.c @@ -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)) {