~ruther/dwl

92d7a8264d0299c8e6bd212da5c10c29769c65d0 — Rutherther 10 months ago 00e23be fix/selmon-no-active-mons
Check for null monitor in resize function
1 files changed, 7 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +7 -1
@@ 2039,8 2039,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);

Do not follow this link