aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-05 20:37:29 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-05 20:37:29 +0200
commitf21fc2c44bfca5d803c96263835ef8fece031fec (patch)
tree8e05272d63269c0a1d7b72638d6717732164c3f0
parentb846d0736cbbce4cb6457eb9c3830c4798e35e95 (diff)
fix window not mapped when top is removed on monocle layout - closes #3
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
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();
}