Make sure the window doesn't grow out of QScreen bounds.