dont allow resizing < 1 (based on increments)
This commit is contained in:
parent
8eed9d643c
commit
a8e98570cc
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue