always apply a minimum size of 1x1 Resizing with the mouse can make the size negative, which makes dwl crash, and the minimum is 1 because 0 makes some X11 clients crash.
1 files changed, 4 insertions(+), 0 deletions(-) M dwl.c
M dwl.c => dwl.c +4 -0
@@ 488,6 488,10 @@ static struct wlr_xwayland *xwayland; void applybounds(Client *c, struct wlr_box *bbox) { /* set minimum client size to 1 */ 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->isfullscreen) { struct wlr_box min = {0}, max = {0}; client_get_size_hints(c, &max, &min);