From 3136043500c2e15b62154f955c3560302be0846f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez?= Date: Wed, 9 Nov 2022 00:00:25 -0600 Subject: [PATCH] Update dwl.c --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 5ee8722..5ee3c92 100644 --- a/dwl.c +++ b/dwl.c @@ -1016,7 +1016,7 @@ createnotify(struct wl_listener *listener, void *data) if (xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP) { struct wlr_box box; LayerSurface *l = toplevel_from_popup(xdg_surface->popup); - if (xdg_surface->popup->parent == NULL) + if (!xdg_surface->popup->parent) return; xdg_surface->surface->data = wlr_scene_xdg_surface_create( xdg_surface->popup->parent->data, xdg_surface);