summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 613a029..36304c0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -625,9 +625,10 @@ Monitor *
625dirtomon(int dir) { 625dirtomon(int dir) {
626 Monitor *m = NULL; 626 Monitor *m = NULL;
627 627
628 if(dir > 0) 628 if(dir > 0) {
629 if(!(m = selmon->next)) 629 if(!(m = selmon->next))
630 m = mons; 630 m = mons;
631 }
631 else { 632 else {
632 if(selmon == mons) 633 if(selmon == mons)
633 for(m = mons; m->next; m = m->next); 634 for(m = mons; m->next; m = m->next);
@@ -1521,7 +1522,7 @@ tag(const Arg *arg) {
1521void 1522void
1522tagmon(const Arg *arg) { 1523tagmon(const Arg *arg) {
1523 if(!selmon->sel || !mons->next) 1524 if(!selmon->sel || !mons->next)
1524 return 1525 return;
1525 sendmon(selmon->sel, dirtomon(arg->i)); 1526 sendmon(selmon->sel, dirtomon(arg->i));
1526} 1527}
1527 1528