I think what is happening here is that the login prompt is appearing on the screen on which the mouse pointer is located, rather than the primary monitor, so it's not so random at all.
I think what is happening here is that the login prompt is appearing on the screen on which the mouse pointer is located, rather than the primary monitor, so it's not so random at all.