Window events work now (including resizing the window)