diff options
author | Dima Krasner <dima@dimakrasner.com> | 2022-07-25 08:14:33 +0300 |
---|---|---|
committer | Leonardo Hernández <leohdz172@protonmail.com> | 2022-07-25 01:19:36 -0500 |
commit | 9d2eb8483b52a7a4858454d557196d83e1a24011 (patch) | |
tree | 8c83df69c652ab9c7a170d6fdb766b4807335671 /dwl.c | |
parent | 7eee0a8229f2debed4ca552d0de5d7fe8a5721a5 (diff) |
fix segfault if parent->mon is unset
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |