diff options
author | Anselm R Garbe <anselm@garbe.us> | 2009-06-27 17:38:18 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2009-06-27 17:38:18 +0100 |
commit | 64674c395b89f8d9640163cdcf9c8f4e25ba0e9c (patch) | |
tree | be8d789b339bfc171a77298709f6f7e66595f4af /dwm.c | |
parent | b9dee2c6f172478b7a652cdf9d074ee0bd9acddc (diff) | |
download | dwm-64674c395b89f8d9640163cdcf9c8f4e25ba0e9c.tar.gz dwm-64674c395b89f8d9640163cdcf9c8f4e25ba0e9c.tar.bz2 dwm-64674c395b89f8d9640163cdcf9c8f4e25ba0e9c.zip |
fixed focusmon brokeness
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -804,13 +804,11 @@ focusmon(const Arg *arg) { 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; } |