diff -r 10970b5a3c3b -r fc7dd1b14093 dwm.c --- a/dwm.c Wed Jun 11 19:42:24 2008 +0100 +++ b/dwm.c Wed Jun 11 19:47:20 2008 +0100 @@ -324,9 +324,9 @@ } } if(ev->x < x + blw) { - if(ev->button == Button1) + if(ev->button == Button1) togglelayout(NULL); - else if(ev->button == Button3) + else if(ev->button == Button3) togglemax(NULL); } } @@ -662,7 +662,7 @@ for(i = clients; i != sel; i = i->next) if (!i->isbanned) c = i; - if(!c) + if(!c) for(; i; i = i->next) if (!i->isbanned) c = i;