dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 784b047b3825b0c784de85034e9b215134250e3c
parent 11baacbec0b75dff34abf52d5172687e4ae2cc4f
Author: Rutherther <rutherther@proton.me>
Date:   Fri, 31 May 2024 16:00:50 +0200

Check for null monitor in resize function

Diffstat:
Mdwl.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -2100,8 +2100,14 @@ requestmonstate(struct wl_listener *listener, void *data) void resize(Client *c, struct wlr_box geo, int interact) { - struct wlr_box *bbox = interact ? &sgeom : &c->mon->w; + struct wlr_box *bbox; struct wlr_box clip; + + if (!c->mon) + return; + + bbox = interact ? &sgeom : &c->mon->w; + client_set_bounds(c, geo.width, geo.height); c->geom = geo; applybounds(c, bbox);