dont allow resizing < 1 (based on increments)

This commit is contained in:
Dana Jansens 2003-01-16 04:10:12 +00:00
parent 8eed9d643c
commit a8e98570cc

View file

@ -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);