aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 42cd806..d580b2d 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1436,7 +1436,8 @@ mapnotify(struct wl_listener *listener, void *data)
/* Set the same monitor and tags than its parent */
c->isfloating = 1;
wlr_scene_node_reparent(c->scene, layers[LyrFloat]);
- setmon(c, p->mon, p->tags);
+ /* TODO recheck if !p->mon is possible with wlroots 0.16.0 */
+ setmon(c, p->mon ? p->mon : selmon, p->tags);
} else {
applyrules(c);
}