From 73dee91a28e2006279d37140131a9d0a074dc6e3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 2 May 2008 11:02:22 +0200 Subject: [PATCH] [layout] Do not focus new client if current focused is maximized (FS#182) Signed-off-by: Julien Danjou --- layout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout.c b/layout.c index 3f0b56b7c..a4aac017e 100644 --- a/layout.c +++ b/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