mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
9b8dc1ba7f
commit
46b1d6ef1e
3
client.c
3
client.c
@ -832,6 +832,9 @@ client_applysizehints(struct client_ctx *cc)
|
|||||||
cc->geom.w = MIN(cc->geom.w, cc->hint.maxw);
|
cc->geom.w = MIN(cc->geom.w, cc->hint.maxw);
|
||||||
if (cc->hint.maxh)
|
if (cc->hint.maxh)
|
||||||
cc->geom.h = MIN(cc->geom.h, 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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user