diff options
| -rw-r--r-- | monsterwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monsterwm.c b/monsterwm.c index 264f3db..865d43c 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -673,8 +673,9 @@ void move_up() { */ void next_win() { if (!current || !head->next) return; - update_current((prevfocus = current)->next ? current->next : head); + current = (prevfocus = current)->next ? current->next : head; if (mode == MONOCLE) XMapWindow(dis, current->win); + update_current(current); } /* cyclic focus the previous window |
