summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 956b13f0..dce06e94 100644
--- a/client.c
+++ b/client.c
@@ -84,7 +84,7 @@ void
focus(Client *c) {
Client *old;
- if(!issel)
+ if(!issel || (c && !isvisible(c)))
return;
if(!sel)
sel = c;