So I've been struggling with this issue for quite a while. At first I thought it was a combination of DisplayPort and an HDMI monitor, but now that I have 2 monitors with a DisplayPort the issue persists.
My situation: I have 2 monitors. One is an AOC 24G1WG4, the other is my new LG 27GL83A-B and I'm running it as an extended setup.
As my primary monitor I have my LG and so my secondary monitor is the AOC. I have disabled the option that the taskbar is at all my monitors because I would only show the taskbar on my secondary monitor. When I unlock the taskbar and drag it to the secondary monitor and lock it again it stays there as long as I don't turn off the power for my monitors.
That being said when I switch off my monitors and turn it on again my taskbar gets moved to the primary monitor and it's still locked.
Now I have read various things, one reason could be because the LG is switching on quicker and so it becomes the primary another could be because of inactive devices.
I have tried a few open source tools to "fix" this issue, but to no avail. I'm wondering if anyone has had this issue and if there is a solution by now?
Looking forward to some tips to solve this issue as it's driving me insane :(