~ruther/dwl

9d2eb8483b52a7a4858454d557196d83e1a24011 — Dima Krasner 2 years ago 7eee0a8
fix segfault if parent->mon is unset
1 files changed, 2 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +2 -1
@@ 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);
	}

Do not follow this link