dwm.c
changeset 1446 c3ea02998d91
parent 1445 4ad1f24d38ec
child 1447 4fff5050c835
--- a/dwm.c	Thu Jul 02 20:37:26 2009 +0100
+++ b/dwm.c	Thu Jul 02 20:38:56 2009 +0100
@@ -625,9 +625,10 @@
 dirtomon(int dir) {
 	Monitor *m = NULL;
 
-	if(dir > 0)
+	if(dir > 0) {
 		if(!(m = selmon->next))
 			m = mons;
+	}
 	else {
 		if(selmon == mons)
 			for(m = mons; m->next; m = m->next);
@@ -1521,7 +1522,7 @@
 void
 tagmon(const Arg *arg) {
 	if(!selmon->sel || !mons->next)
-		return
+		return;
 	sendmon(selmon->sel, dirtomon(arg->i));
 }