diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -625,9 +625,10 @@ Monitor * | |||
| 625 | dirtomon(int dir) { | 625 | dirtomon(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) { | |||
| 1521 | void | 1522 | void |
| 1522 | tagmon(const Arg *arg) { | 1523 | tagmon(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 | ||
