Fix mouse events not working when switching from 1x window size to fullscreen mode.