diff options
| author | Rutherther <rutherther@proton.me> | 2024-05-31 16:00:50 +0200 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-06-20 17:49:29 -0600 | 
| commit | 784b047b3825b0c784de85034e9b215134250e3c (patch) | |
| tree | fdc070e2f9fefa9c7a49ddb321732d79d90b00af /dwl.c | |
| parent | 11baacbec0b75dff34abf52d5172687e4ae2cc4f (diff) | |
Check for null monitor in resize function
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 8 | 
1 files changed, 7 insertions, 1 deletions
@@ -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);  | 
