From f21fc2c44bfca5d803c96263835ef8fece031fec Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 5 Jan 2012 20:37:29 +0200 Subject: fix window not mapped when top is removed on monocle layout - closes #3 --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index bc0dbad..5fd1cfe 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -499,7 +499,7 @@ void removeclient(client *c) { } select_desktop(cd); tile(); - if (mode == MONOCLE && cd == nd && current) XMapWindow(dis, current->win); + if (mode == MONOCLE && cd == --nd && current) XMapWindow(dis, current->win); update_current(); } -- cgit v1.3.1