--- a/client.c Tue May 29 13:53:08 2007 +0200
+++ b/client.c Wed May 30 08:57:44 2007 +0200
@@ -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);
--- a/event.c Tue May 29 13:53:08 2007 +0200
+++ b/event.c Wed May 30 08:57:44 2007 +0200
@@ -244,7 +244,7 @@
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;