fix crash when re-mapping a client

Fixes: ab5c554d09
This commit is contained in:
Leonardo Hernández Hernández
2024-07-27 21:34:18 -06:00
parent 986beef5be
commit b5abbc37d8

2
dwl.c
View File

@@ -2183,7 +2183,7 @@ resize(Client *c, struct wlr_box geo, int interact)
struct wlr_box *bbox;
struct wlr_box clip;
if (!c->mon || !c->scene)
if (!c->mon || !client_surface(c)->mapped)
return;
bbox = interact ? &sgeom : &c->mon->w;