Having used Linux-based OSs for several years I grew to love the virtual desktops. I was happy to find out that W10 had implemented virtual desktops too. However using them i have found that occasionally the virtual desktops will switch focus automatically.
As far as i can tell there is no real pattern, sometimes it switches after sitting idle for a couple of minutes (but not always), sometimes it switches while i am actively using the virtual desktop (but not always and sometimes it switches back instantly). Also strangely it doesn't focus automatically on the same virtual desktop either, sometimes it is desktop 1 or 2 depending on how many are open (at most 4).
Obviously this is slightly annoying and I have no idea if this is a common problem (google didnt give me any useful results) so am I the only one 'suffering' from it? Regardless, is there a fix?
Best Answer
After a little experimentation, I believe I have found the answer.
The issue seems to be when Windows focuses on a program. For example, if you click outside of your web browser, you'll notice it grays out. Windows is no longer focused on it, it's focused on the window you clicked.
If you try running a program that's already open in another virtual desktop (depending on its ability to have multiple windows open), it will redirect to the applicable desktop.
Now, in the article below, it talks about "focus stealing". This is where a program steals the window focus for itself. This can and will affect your virtual desktops, so here are some instructions from it on how to prevent this:
Source
Hope this helps!