Update window dimensions to config on resize.