From 8c948f751a4e7325e3c7db5a1c5c4bbce7866b14 Mon Sep 17 00:00:00 2001 From: korei999 Date: Thu, 4 Jan 2024 01:47:04 +0200 Subject: [PATCH] fix posible NULL-dereference in wl_surface.commit handler --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index fc45f7f..f10d90c 100644 --- a/dwl.c +++ b/dwl.c @@ -826,7 +826,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), c->bw > 0); /* mark a pending resize as completed */