Sane window resize