summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-16 04:10:12 +0000
committerDana Jansens <danakj@orodu.net>2003-01-16 04:10:12 +0000
commita8e98570cc32fc4b9015927acef4a24c015f799e (patch)
tree8d121c8ad1a5886b99c04c06b5edc28d928a936e /src
parent8eed9d643c9cde6cba0c948aa5fa6756ed1b5d97 (diff)
dont allow resizing < 1 (based on increments)
Diffstat (limited to 'src')
-rw-r--r--src/client.cc4
1 files changed, 4 insertions, 0 deletions
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);