aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-13 21:42:57 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-13 21:42:57 +0200
commit6dc95228bb092881c800888dc1b683f78f209db3 (patch)
tree0cc014cb7df2ca049e8448bdeb3e00b983e0ec03
parentd2032b4c979883e10192283a5efc41d23ca2de81 (diff)
do not tile windows if closing window was transient
-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);
}