Allow skip to be focused (by mouse) but refuse to focus them if they're newcomer
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
60e36aee54
commit
3310b974b4
2
client.c
2
client.c
|
@ -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) || c->skip)))
|
if(!c || (c && (!client_isvisible(c, screen))))
|
||||||
{
|
{
|
||||||
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 */
|
||||||
|
|
2
layout.c
2
layout.c
|
@ -65,7 +65,7 @@ arrange(int screen)
|
||||||
{
|
{
|
||||||
c->newcomer = False;
|
c->newcomer = False;
|
||||||
client_unban(c);
|
client_unban(c);
|
||||||
if(globalconf.screens[screen].new_get_focus)
|
if(globalconf.screens[screen].new_get_focus && !c->skip)
|
||||||
client_focus(c, screen, True);
|
client_focus(c, screen, True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue