dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 9136b6247d186790926bdee32d0a17d668ff8924
parent 19b5d47a9e712b980749b7b9e1c562701d5afafc
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Tue,  6 Dec 2022 13:34:35 -0600

return early if couldn't find the popup's parent

Diffstat:
Mdwl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -910,7 +910,7 @@ createnotify(struct wl_listener *listener, void *data) if (xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP) { struct wlr_box box; int type = toplevel_from_wlr_surface(xdg_surface->surface, &c, &l); - if (!xdg_surface->popup->parent) + if (!xdg_surface->popup->parent || type < 0) return; xdg_surface->surface->data = wlr_scene_xdg_surface_create( xdg_surface->popup->parent->data, xdg_surface);