Redraw window every time resize event occurs

Even if the new size is the same as the old size. Otherwise the screen
would reinit without redrawing.

Also remove some prints I accidentally committed.