summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 60b74ae..3dba2bf 100644
--- 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);