aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe2009-07-02 20:38:56 +0100
committerAnselm R Garbe2009-07-02 20:38:56 +0100
commitcd96232f7e97726413baeb0d411cc5f537575f0e (patch)
tree16ea641c2633c3dea2159d25a55d7f943c99e4c7
parenta9e145fe6d8af4848e6706131ac41e99003cd997 (diff)
hotfix
-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 *
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));
}