mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Check for null monitor in resize function
This commit is contained in:
parent
11baacbec0
commit
784b047b38
1 changed files with 7 additions and 1 deletions
8
dwl.c
8
dwl.c
|
@ -2100,8 +2100,14 @@ requestmonstate(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
resize(Client *c, struct wlr_box geo, int interact)
|
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;
|
struct wlr_box clip;
|
||||||
|
|
||||||
|
if (!c->mon)
|
||||||
|
return;
|
||||||
|
|
||||||
|
bbox = interact ? &sgeom : &c->mon->w;
|
||||||
|
|
||||||
client_set_bounds(c, geo.width, geo.height);
|
client_set_bounds(c, geo.width, geo.height);
|
||||||
c->geom = geo;
|
c->geom = geo;
|
||||||
applybounds(c, bbox);
|
applybounds(c, bbox);
|
||||||
|
|
Loading…
Reference in a new issue