fix: better switching between window/fullscreen mode