Fix vertical sync swapping for Linux