Made setting minimum size of a system window work correctly.