From 47ddc0fddb261d9bd105d9956476807c26874e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez?= Date: Tue, 8 Nov 2022 23:59:15 -0600 Subject: [PATCH] Update client.h --- client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.h b/client.h index a742631..38330d5 100644 --- a/client.h +++ b/client.h @@ -304,7 +304,7 @@ toplevel_from_popup(struct wlr_xdg_popup *popup) while (1) { switch (surface->role) { case WLR_XDG_SURFACE_ROLE_POPUP: - if (surface->popup->parent == NULL) + if (!surface->popup->parent) return NULL; else if (wlr_surface_is_layer_surface(surface->popup->parent)) return wlr_layer_surface_v1_from_wlr_surface(surface->popup->parent)->data;