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;