I'm running Windows 10 with two monitors. Sometimes, I need to get to a file on the desktop, so I use win+d to minimize all the windows. I've noticed that when I maximize the windows again (either by pressing win+d again or manually selecting the window), some of the windows that I had on my secondary monitor have moved back to my primary monitor.
This also happens if I use different shortcuts (such as win+m) as well as if I manually minimize the window using the button in the top right.
However, this does not occur for all windows. For example, I have two Chrome windows open; one moves and one doesn't. And it seems the windows only move from the secondary monitor to the primary monitor, not the other way around.
Why is this happening? Is there any way to fix it so that the windows stay where they were before being minimized?