microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.39k stars 6.56k forks source link

"Keep windows in their zones when the screen resolution changes" does not work correctly on all Virtual desktops #6784

Open AdiJurca opened 4 years ago

AdiJurca commented 4 years ago

I use Remote Desktop Connection to connect to a desktop and use a super-ultra-wide monitor locally. When I connect to the remote desktop the resolution goes to my full screen(5120x1440). When I disconnect from it the remote desktop the resolution switches back to default for that computer (2560x1440). On that computer I use multiple virtual desktops and on one of them I have a different zone layout compared to the rest. Having "Keep windows in their zones when the screen resolution changes" checked I'd expect the windows to be kept in their zones on all Virtual Desktops, but only the focused one keep that way after resolution change. The others revert to some default location for all the windows.

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

  1. Create a few Virtual desktops in Windows Task View
  2. Have some of the Virtual desktops have a different zone layout (not sure if important)
  3. Make sure "Keep windows in their zones when the screen resolution changes" is checked
  4. Snap windows in some of the zones on each Virtual desktop
  5. Change resolution of screen

✔️ Expected result

The snapped windows should keep their location on all Virtual desktops

❌ Actual result

Only the snapped windows on the focused Virtual desktop have kept their location. The windows on al other Virtual Desktops have moved out of the zones.

enricogior commented 3 years ago

Note: this is very easy to reproduce and doesn't require to use a remote connection:

result: only the current current desktop is processed, the other VDs are not

koppor commented 11 months ago

I think, this still happens. It is especially annoying when letting the PC suspending and then waking up again: All my windows are moved to the main screen...

I think, this refs https://github.com/microsoft/PowerToys/issues/16395 and also https://github.com/microsoft/PowerToys/issues/19915.

Maybe, also https://github.com/microsoft/PowerToys/issues/18103 is related.