# HG changeset patch # User Anselm R Garbe # Date 1246563536 -3600 # Node ID c3ea02998d9124e9799958684dd502c957202499 # Parent 4ad1f24d38ecb4c369b50c9f141b3db77e7bc3f1 hotfix diff -r 4ad1f24d38ec -r c3ea02998d91 dwm.c --- a/dwm.c Thu Jul 02 20:37:26 2009 +0100 +++ b/dwm.c Thu Jul 02 20:38:56 2009 +0100 @@ -625,9 +625,10 @@ 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 @@ void tagmon(const Arg *arg) { if(!selmon->sel || !mons->next) - return + return; sendmon(selmon->sel, dirtomon(arg->i)); }