fix window resizing and fullscreen