From: Dana Jansens Date: Thu, 16 Jan 2003 04:10:12 +0000 (+0000) Subject: dont allow resizing < 1 (based on increments) X-Git-Tag: openbox-2_3_0~352 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a8e98570cc32fc4b9015927acef4a24c015f799e;p=dana%2Fopenbox.git dont allow resizing < 1 (based on increments) --- 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);