From: arg@mmvi Date: Fri, 15 Sep 2006 08:49:05 +0000 (+0200) Subject: focus() enforces visibility of a client if not NULL X-Git-Url: https://git.xinqibao.xyz/dwm.git/commitdiff_plain/8e37c78ce3c33842a5800a445f90a3079a377eb6?ds=inline focus() enforces visibility of a client if not NULL --- diff --git a/client.c b/client.c index 956b13f..dce06e9 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;