call arrange() or resize() depending on c->isfloating in commitnotify
This commit is contained in:
parent
afacc9b0b5
commit
6682878009
2
dwl.c
2
dwl.c
@ -764,7 +764,7 @@ commitnotify(struct wl_listener *listener, void *data)
|
|||||||
|
|
||||||
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw
|
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw
|
||||||
|| box.height != c->geom.height - 2 * c->bw))
|
|| box.height != c->geom.height - 2 * c->bw))
|
||||||
arrange(c->mon);
|
c->isfloating ? resize(c, c->geom, 1) : arrange(c->mon);
|
||||||
|
|
||||||
/* mark a pending resize as completed */
|
/* mark a pending resize as completed */
|
||||||
if (c->resize && (c->resize <= c->surface.xdg->current.configure_serial
|
if (c->resize && (c->resize <= c->surface.xdg->current.configure_serial
|
||||||
|
Loading…
Reference in New Issue
Block a user