diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-02-01 19:30:00 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-02-01 19:34:28 +0200 |
| commit | be52dcfffd2e538e48eed720f7343045bf350ab3 (patch) | |
| tree | 5fc046a5a581ee2485721cb9f4d85335953c9a34 | |
| parent | 9aaeece3d572a3cbcd953c5512160c9c8dd12d39 (diff) | |
bugfix: focus was lost on monocle layout when switching desktops
| -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 |
