From be52dcfffd2e538e48eed720f7343045bf350ab3 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Wed, 1 Feb 2012 19:30:00 +0200 Subject: bugfix: focus was lost on monocle layout when switching desktops --- monsterwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'monsterwm.c') 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 -- cgit v1.3.1