From a8e98570cc32fc4b9015927acef4a24c015f799e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 16 Jan 2003 04:10:12 +0000 Subject: [PATCH] dont allow resizing < 1 (based on increments) --- src/client.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.45.2