X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=dce06e94a068dd03c6376f514bb6b439d6805780;hb=8e37c78ce3c33842a5800a445f90a3079a377eb6;hp=956b13f021c79c2ede8bba8fec983327b2034129;hpb=ca68975ff8fc1c7166c8d1f811e3dd52c735d19f;p=dwm.git 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;