X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=a9fbdeb70790a4b6bf7c9871a73776d5eb009bd3;hb=a8e98570cc32fc4b9015927acef4a24c015f799e;hp=df519050fdff001086104e0cdeb003039885f1fc;hpb=8eed9d643c9cde6cba0c948aa5fa6756ed1b5d97;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index df519050..a9fbdeb7 100644 --- a/src/client.cc +++ b/src/client.cc @@ -968,6 +968,10 @@ void Client::resize(Corner anchor, int w, int h, int x, int y) w /= _size_inc.x(); h /= _size_inc.y(); + // you cannot resize to nothing + if (w < 1) w = 1; + if (h < 1) h = 1; + // store the logical size _logical_size.setPoint(w, h);