JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
hotfix
authorAnselm R Garbe <anselm@garbe.us>
Thu, 2 Jul 2009 19:38:56 +0000 (20:38 +0100)
committerAnselm R Garbe <anselm@garbe.us>
Thu, 2 Jul 2009 19:38:56 +0000 (20:38 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 613a029..36304c0 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -625,9 +625,10 @@ Monitor *
 dirtomon(int dir) {
        Monitor *m = NULL;
 
 dirtomon(int dir) {
        Monitor *m = NULL;
 
-       if(dir > 0)
+       if(dir > 0) {
                if(!(m = selmon->next))
                        m = mons;
                if(!(m = selmon->next))
                        m = mons;
+       }
        else {
                if(selmon == mons)
                        for(m = mons; m->next; m = m->next);
        else {
                if(selmon == mons)
                        for(m = mons; m->next; m = m->next);
@@ -1521,7 +1522,7 @@ tag(const Arg *arg) {
 void
 tagmon(const Arg *arg) {
        if(!selmon->sel || !mons->next)
 void
 tagmon(const Arg *arg) {
        if(!selmon->sel || !mons->next)
-               return
+               return;
        sendmon(selmon->sel, dirtomon(arg->i));
 }
 
        sendmon(selmon->sel, dirtomon(arg->i));
 }