From 7e38de37a75f0429ae0d73be4fbbb0bfc04f9775 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 4 Jul 2022 17:48:04 +0200 Subject: [PATCH] fix crash --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 133e5fa3..776c76dd 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -32,7 +32,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { } } else { - if (wlr_surface_is_xdg_surface(RDATA->surface)) { + if (RDATA->surface && wlr_surface_is_xdg_surface(RDATA->surface)) { wlr_box geo; wlr_xdg_surface_get_geometry(wlr_xdg_surface_from_wlr_surface(RDATA->surface), &geo);