- // When resizing, if the resize has a non-zero value then make sure it
- // is at least as big as the size increment so the window does actually
- // resize.
+ if (left && ABS(left) < c->size_inc.width)
+ left = left < 0 ? -c->size_inc.width : c->size_inc.width;
+ if (right && ABS(right) < c->size_inc.width)
+ right = right < 0 ? -c->size_inc.width : c->size_inc.width;
+ if (top && ABS(top) < c->size_inc.height)
+ top = top < 0 ? -c->size_inc.height : c->size_inc.height;
+ if (bottom && ABS(bottom) < c->size_inc.height)
+ bottom = bottom < 0 ? -c->size_inc.height : c->size_inc.height;
+
+ /* When resizing, if the resize has a non-zero value then make sure it
+ is at least as big as the size increment so the window does actually
+ resize. */