JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
focus() enforces visibility of a client if not NULL
[dwm.git] / client.c
index 956b13f..dce06e9 100644 (file)
--- 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;