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);
void
tagmon(const Arg *arg) {
if(!selmon->sel || !mons->next)
- return
+ return;
sendmon(selmon->sel, dirtomon(arg->i));
}