mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
Fix applybounds
Applybounds doesn't move client when it overlays only with border with monitor to the right. Apparently, c->geom.width already includes the border as well.
This commit is contained in:
parent
2b4893a0ad
commit
ce2b4153e3
4
dwl.c
4
dwl.c
@ -442,9 +442,9 @@ applybounds(Client *c, struct wlr_box *bbox)
|
||||
c->geom.x = bbox->x + bbox->width - c->geom.width;
|
||||
if (c->geom.y >= bbox->y + bbox->height)
|
||||
c->geom.y = bbox->y + bbox->height - c->geom.height;
|
||||
if (c->geom.x + c->geom.width + 2 * (int)c->bw <= bbox->x)
|
||||
if (c->geom.x + c->geom.width <= bbox->x)
|
||||
c->geom.x = bbox->x;
|
||||
if (c->geom.y + c->geom.height + 2 * (int)c->bw <= bbox->y)
|
||||
if (c->geom.y + c->geom.height <= bbox->y)
|
||||
c->geom.y = bbox->y;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user