JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
after switching to OpenBSD again, I switched back to a saner color scheme
[dwm.git] / client.c
index cb5334e..8b98c19 100644 (file)
--- a/client.c
+++ b/client.c
@@ -73,12 +73,14 @@ focus(Client *c)
 {
        Client *old = sel;
 
-       if (!issel)
+       if(!issel)
                return;
-       if(sel && sel->ismax && sel != c)
-               togglemax(NULL);
-       sel = c;
-       if(old && old != c) {
+       if(!sel)
+               sel = c;
+       else if(sel != c) {
+               if(sel->ismax)
+                       togglemax(NULL);
+               sel = c;
                grabbutton(old, AnyButton, 0);
                drawtitle(old);
        }