Only if the window doesn't need to rotate, adjust the size by window's geometry hint...