aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
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 5537ef1..d32306c 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -557,10 +557,11 @@ void removeclient(client *c) {
for (Bool found = False; nd<DESKTOPS && !found; nd++)
for (select_desktop(nd), p = &head; *p && !(found = *p == c); p = &(*p)->next);
*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);
}