aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-13 22:08:51 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-13 22:14:01 +0200
commite21b5e67c299480cada3374183c1989525ffc43d (patch)
treeba6dbf591fdd439f7b96885a5d9a3a723cd0b885
parent6dc95228bb092881c800888dc1b683f78f209db3 (diff)
do not tile windows if the new window is transient
-rw-r--r--monsterwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c
index d32306c..22ae088 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -376,8 +376,8 @@ void maprequest(XEvent *e) {
select_desktop(cd);
if (cd == newdsk) {
- tile();
- XMapWindow(dis, e->xmaprequest.window);
+ if (!current->istransient) tile();
+ XMapWindow(dis, current->win);
update_current(NULL);
grabbuttons(current);
} else if (follow) change_desktop(&(Arg){.i = newdsk});