Windows shift to the unlocking monitor after resuming from sleep/screensaver on multi-display setup

When the system enters sleep or activates the screensaver while a full-screen or windowed application (specifically Proton/Wine/Steam games) is running on the primary monitor, unlocking the session from the secondary monitor forces the application to migrate to that secondary monitor, disrupting the original display layout.

Steps to Reproduce

  1. Set up a dual-monitor configuration (Primary and Secondary).
  2. Launch a EveOnline game via Steam on the Primary monitor.
  3. Allow the system to go to sleep or trigger the screensaver lock screen.
  4. Move the mouse to the Secondary monitor to bring up the unlock password prompt on that screen.
  5. Enter the password and unlock the session from the Secondary monitor.

Arch linux, xfce 4.20 , xfwm4 , x11

ryzen 7 8500xt , rx 9060xt