X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=36304c0f97e3b6877e7869f9f94495cdac6622a9;hp=613a029ba8c02eba5411610bb0b09e3f1e37f681;hb=cd96232f7e97726413baeb0d411cc5f537575f0e;hpb=a9e145fe6d8af4848e6706131ac41e99003cd997 diff --git a/dwm.c b/dwm.c index 613a029..36304c0 100644 --- a/dwm.c +++ b/dwm.c @@ -625,9 +625,10 @@ Monitor * 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 @@ tag(const Arg *arg) { void tagmon(const Arg *arg) { if(!selmon->sel || !mons->next) - return + return; sendmon(selmon->sel, dirtomon(arg->i)); }