When a client doesn't specify size hints, nothing prevents a resize to

0x0 - don't allow this situation during mouse resize (check already in
place for kbd resize).

Reported by brynet@
This commit is contained in:
okan 2014-01-02 20:58:20 +00:00
parent 9b8dc1ba7f
commit 46b1d6ef1e

View File

@ -832,6 +832,9 @@ client_applysizehints(struct client_ctx *cc)
cc->geom.w = MIN(cc->geom.w, cc->hint.maxw);
if (cc->hint.maxh)
cc->geom.h = MIN(cc->geom.h, cc->hint.maxh);
cc->geom.w = MAX(cc->geom.w, 1);
cc->geom.h = MAX(cc->geom.h, 1);
}
static void