~ruther/dwl

19b5d47a9e712b980749b7b9e1c562701d5afafc — Leonardo Hernández Hernández 2 years ago c9a0a8b
fix popups appearing outside the monitor

and a potentially crash
1 files changed, 1 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -1
@@ 914,7 914,7 @@ createnotify(struct wl_listener *listener, void *data)
			return;
		xdg_surface->surface->data = wlr_scene_xdg_surface_create(
				xdg_surface->popup->parent->data, xdg_surface);
		if ((!l || !l->mon) || (!c || !c->mon))
		if ((l && !l->mon) || (c && !c->mon))
			return;
		box = type == LayerShell ? l->mon->m : c->mon->w;
		box.x -= (type == LayerShell ? l->geom.x : c->geom.x);

Do not follow this link