focus() enforces visibility of a client if not NULL
This commit is contained in:
parent
ca68975ff8
commit
8e37c78ce3
1 changed files with 1 additions and 1 deletions
2
client.c
2
client.c
|
@ -84,7 +84,7 @@ void
|
||||||
focus(Client *c) {
|
focus(Client *c) {
|
||||||
Client *old;
|
Client *old;
|
||||||
|
|
||||||
if(!issel)
|
if(!issel || (c && !isvisible(c)))
|
||||||
return;
|
return;
|
||||||
if(!sel)
|
if(!sel)
|
||||||
sel = c;
|
sel = c;
|
||||||
|
|
Loading…
Reference in a new issue