switches when focused window is changed