I never had this issue before but then I got a new video card and two new monitors. The monitors are identical but one is connected via hdmi and the other via display port. The hdmi monitor goes to sleep and the display port one doesn’t, it just keeps displaying the Ubuntu screen for logging in. This causes windows from one monitor to move to the other if I log in before turning the other one back on.
How can I prevent this from happening?
Aside from this, even when neither monitor goes to sleep, sometimes the login prompt would be on the other monitor and that once again leads to them getting swapped in order.