mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-09-19 05:42:49 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user