~ruther/dwl

ba9e007b376033bb66cec1be0ccfd00c9f57f825 — Rutherther 11 months ago 533e843 + e84d1ca
Merge branch 'v0.6-a/patched-base' into v0.6-a/patched-keycodes
1 files changed, 4 insertions(+), 4 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -4
@@ 541,14 541,14 @@ applybounds(Client *c, struct wlr_box *bbox)
		c->geom.y = bbox->y + (c->geom.y - c->prev_bounds.y) * (bbox->height / c->prev_bounds.height);
	}

	if (c->geom.x >= bbox->x + bbox->width)
		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 < bbox->x)
		c->geom.x = bbox->x;
	if (c->geom.y < bbox->y)
		c->geom.y = bbox->y;
	if (c->geom.x + c->geom.width >= bbox->x + bbox->width)
		c->geom.x = bbox->x + bbox->width - c->geom.width;
	if (c->geom.y + c->geom.height >= bbox->y + bbox->height)
		c->geom.y = bbox->y + bbox->height - c->geom.height;
}

void

Do not follow this link