summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-01-01 00:51:01 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-01-01 00:51:01 -0600
commitf3c4f723147b40fb1284083f3d7dac988c52d162 (patch)
tree02e27a2b8eec6ade866d68d7fb466df695078708
parent6cbf8e9b80d8be140bd4a71268b483ac1b5c9d5f (diff)
fix posible NULL-dereference in wl_surface.commit handler
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 10d5a5b..4d19357 100644
--- a/dwl.c
+++ b/dwl.c
@@ -731,7 +731,7 @@ commitnotify(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, commit);
- if (client_surface(c)->mapped)
+ if (client_surface(c)->mapped && c->mon)
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
/* mark a pending resize as completed */