Refuse to give focus on skippable windows

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-23 20:55:37 +01:00
parent ec96d4d1f8
commit e261ad7b5d
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void
client_focus(Client *c, int screen, Bool raise) client_focus(Client *c, int screen, Bool raise)
{ {
/* if c is NULL or invisible, take next client in the focus history */ /* if c is NULL or invisible, take next client in the focus history */
if(!c || (c && !client_isvisible(c, screen))) if(!c || (c && (!client_isvisible(c, screen) || c->skip)))
{ {
c = focus_get_current_client(screen); c = focus_get_current_client(screen);
/* if c is still NULL take next client in the stack */ /* if c is still NULL take next client in the stack */