diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-06 13:34:35 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-06 13:34:35 -0600 | 
| commit | 9136b6247d186790926bdee32d0a17d668ff8924 (patch) | |
| tree | ad993fc49592b45616d42e7883664b0c7d464798 | |
| parent | 19b5d47a9e712b980749b7b9e1c562701d5afafc (diff) | |
return early if couldn't find the popup's parent
| -rw-r--r-- | dwl.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -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);  | 
