From 6dc95228bb092881c800888dc1b683f78f209db3 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Fri, 13 Jan 2012 21:42:57 +0200 Subject: do not tile windows if closing window was transient --- monsterwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index 5537ef1..d32306c 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -557,10 +557,11 @@ void removeclient(client *c) { for (Bool found = False; ndnext); *p = c->next; + Bool transient = c->istransient; free(c); current = (prevfocus && prevfocus != current) ? prevfocus : (*p) ? (prevfocus = *p) : (prevfocus = head); select_desktop(cd); - tile(); + if (!transient) tile(); if (mode == MONOCLE && cd == --nd && current) XMapWindow(dis, current->win); update_current(NULL); } -- cgit v1.3.1