Also bring the correct window into focus when switching tabs