skip skippable windows when looking for a client

This commit is contained in:
Julien Danjou 2007-12-28 14:12:54 +01:00
parent 91c0f00b2b
commit 4e45103537
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ focus(Client *c, Bool selscreen, int screen)
c = focus_get_current_client(screen);
/* if c is still NULL take next client in the stack */
if(!c)
for(c = globalconf.clients; c && !client_isvisible(c, screen); c = c->next);
for(c = globalconf.clients; c && (c->skip || !client_isvisible(c, screen)); c = c->next);
}
if(c)