This might not even be a bug in the traditional sense. Someone probably decided that switching apps should also switch what's shown on the external display