author | Anselm R Garbe <anselm@garbe.us> |
Sat, 27 Jun 2009 17:38:18 +0100 | |
changeset 1424 | 499cb1ee2b93 |
parent 1423 | b1845c3d6e4f |
child 1425 | 120ed5f8018b |
--- a/dwm.c Fri Jun 26 16:41:27 2009 +0100 +++ b/dwm.c Sat Jun 27 17:38:18 2009 +0100 @@ -804,13 +804,11 @@ for(i = 0, m = mons; m; m = m->next, i++) if(i == arg->ui) { - if(m->stack) - focus(m->stack); - else { - unfocus(selmon->stack); - selmon = m; - focus(NULL); - } + if(m == selmon) + return; + unfocus(selmon->sel); + selmon = m; + focus(NULL); drawbars(); break; }