[layout] Do not focus new client if current focused is maximized (FS#182)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-02 11:02:22 +02:00
parent 4ca0c6f684
commit 73dee91a28
1 changed files with 5 additions and 1 deletions

View File

@ -65,8 +65,12 @@ arrange(int screen)
{ {
c->newcomer = False; c->newcomer = False;
client_unban(c); client_unban(c);
if(globalconf.screens[screen].new_get_focus && !c->skip) if(globalconf.screens[screen].new_get_focus
&& !c->skip
&& (!globalconf.focus->client || !globalconf.focus->client->ismax))
client_focus(c, screen, True); client_focus(c, screen, True);
else if(globalconf.focus->client && globalconf.focus->client->ismax)
client_stack(globalconf.focus->client);
} }
/* if we have a valid client that could be focused but currently no window /* if we have a valid client that could be focused but currently no window