fix posible NULL-dereference in wl_surface.commit handler

This commit is contained in:
Leonardo Hernández Hernández 2024-01-01 00:51:01 -06:00
parent 6cbf8e9b80
commit f3c4f72314
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 1 additions and 1 deletions

2
dwl.c
View File

@ -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 */