aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'monsterwm.c')
-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});