fix crash

This commit is contained in:
vaxerski 2022-07-04 17:48:04 +02:00
parent e0bfec6ef2
commit 7e38de37a7

View file

@ -32,7 +32,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
} }
} }
else { else {
if (wlr_surface_is_xdg_surface(RDATA->surface)) { if (RDATA->surface && wlr_surface_is_xdg_surface(RDATA->surface)) {
wlr_box geo; wlr_box geo;
wlr_xdg_surface_get_geometry(wlr_xdg_surface_from_wlr_surface(RDATA->surface), &geo); wlr_xdg_surface_get_geometry(wlr_xdg_surface_from_wlr_surface(RDATA->surface), &geo);