From 8e37c78ce3c33842a5800a445f90a3079a377eb6 Mon Sep 17 00:00:00 2001 From: "arg@mmvi" Date: Fri, 15 Sep 2006 10:49:05 +0200 Subject: focus() enforces visibility of a client if not NULL --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.c') 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; -- cgit v1.2.3