[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:
parent
4ca0c6f684
commit
73dee91a28
6
layout.c
6
layout.c
|
@ -65,8 +65,12 @@ arrange(int screen)
|
|||
{
|
||||
c->newcomer = False;
|
||||
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);
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue