diff options
author | okan <okan> | 2014-01-02 20:58:20 +0000 |
---|---|---|
committer | okan <okan> | 2014-01-02 20:58:20 +0000 |
commit | 46b1d6ef1e3a45a4ce8b3f5d3c4f9631e793e785 (patch) | |
tree | 6c02c5220704e1e4949dc8bb7af3830c6fbaea08 /client.c | |
parent | 9b8dc1ba7f9af194a19f7cd1c34bfa051250cc18 (diff) | |
download | cwm-46b1d6ef1e3a45a4ce8b3f5d3c4f9631e793e785.tar.gz cwm-46b1d6ef1e3a45a4ce8b3f5d3c4f9631e793e785.tar.xz cwm-46b1d6ef1e3a45a4ce8b3f5d3c4f9631e793e785.zip |
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@
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client.c b/client.c index 1fa88a0..6cf68e4 100644 --- a/client.c +++ b/client.c @@ -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 |