~ruther/dwl

5ae245beedd587a2c9748168ef494abd5a92469c — Leonardo Hernández Hernández 1 year, 2 months ago 089480e
fix minimum size

continuation of 4043fc3093a73174cb63653ba9e742b4738f2ee5
1 files changed, 2 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +2 -2
@@ 412,8 412,8 @@ void
applybounds(Client *c, struct wlr_box *bbox)
{
	/* set minimum possible */
	c->geom.width = MAX(1, c->geom.width);
	c->geom.height = MAX(1, c->geom.height);
	c->geom.width = MAX(1 + 2 * (int)c->bw, c->geom.width);
	c->geom.height = MAX(1 + 2 * (int)c->bw, c->geom.height);

	if (c->geom.x >= bbox->x + bbox->width)
		c->geom.x = bbox->x + bbox->width - c->geom.width;

Do not follow this link