Stream To Dual Screen PC HELP

I’m sure some of you are doing this right now and can fix the issue I am having with this.

So I have just setup a dual screen setup so I can stream xbox one to 1 screen and surf the net or watch youtube on the other screen. My issue is when I go to do anything on second screen which is not the xbox screen the xbox app minimizes and stops streaming. How do I stop that from happening as it so annoying having to click a few buttons and restart the stream.