Make sure cursor visibility is respected when switching between windowed and fullscreen on SDL2