aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-07-27 21:34:18 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-01 22:35:10 -0600
commitcb01023db65d7f9f511a0c1b90b673ab09a56fe1 (patch)
tree41208e0747ddba5aafd0a9ef97e46f1eedec8aed
parent5bbb0ab404d030b314c3e212f87dd5c4c32c9f72 (diff)
fix crash when re-mapping a client
Fixes: ab5c554d096ebca8446b7b1354c49be014b8b747 (cherry picked from commit b5abbc37d8161c7ac8d05010e0effbc6af81718b)
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 5f9491b..2db3c15 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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;