aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-01 19:30:00 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-01 19:34:28 +0200
commitbe52dcfffd2e538e48eed720f7343045bf350ab3 (patch)
tree5fc046a5a581ee2485721cb9f4d85335953c9a34 /monsterwm.c
parent9aaeece3d572a3cbcd953c5512160c9c8dd12d39 (diff)
bugfix: focus was lost on monocle layout when switching desktops
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c3
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