Fix up basic window sizing operations