applied Jukkas patch
39ae286861b7e23f6de0ee290e48bda695c1e881
59e65d1709f7fb4c30761e7cea0875903924581e
@@ -131,7 +131,7 @@ } void focus(Client *c) { - if( !c && selscreen || c && !isvisible(c)) + if((!c && selscreen)|| (c && !isvisible(c))) for(c = stack; c && !isvisible(c); c = c->snext); if(sel && sel != c) { grabbuttons(sel, False);
@@ -131,7 +131,7 @@ }
@@ -244,7 +244,7 @@ XCrossingEvent *ev = &e->xcrossing; if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) return; - if(c = getclient(ev->window)) + if((c = getclient(ev->window))) focus(c); else if(ev->window == root) { selscreen = True;
@@ -244,7 +244,7 @@ XCrossingEvent *ev = &e->xcrossing;