[BUG] - Frame positions lost after PC wakes / restarts, multi monitor
Describe the bug This is basically #65 still but that's been Closed and I can't reopen. Sadly it's still broken after the update (to 1.28.2); the DeskFrame frames get bunched up into the top left corner of the main monitor just the same as before. If I exit DeskFrame and run it again, the frames get positioned correctly (so that's now my workaround - quit DeskFrame and restart it every time I wake the PC - not ideal but it works). Any chance this could be automated or add a "Restart DeskFrame" option to the toolbar icon, if fixing the underlying issue isn't simple?
To Reproduce Set up some frames on multi monitor. Sleep PC. Wake PC.
Expected behavior Frames should appear at same positions on the monitor they were before Sleep.
Screenshots / Screenrecording If applicable, add screenshots or a screenrecording to help explain your problem.
Desktop (please complete the following information):
- Win11 Pro 24H2
- OS Build 26100.6584
Additional context Two monitors (main 3440x1440 at 100% scale and to its right a 3840x2160 at 150% scale), both connected via DisplayPort to an NVidia 3090
It'll be fixed soon! I'm working on it right now.
The attached file is based on the latest commits, could you please verify that it works properly?
Seems improved - a quick couple of tests putting PC to sleep and then waking and the frames stay where they're supposed to be on wakeup. If I turn off the main monitor when the PC's awake, the frames jump to the secondary monitor that's still on, and don't go back to the correct places on the main monitor when I turn that back on again. But that's a minor-ish point (it's not something I'd often do).
Edit: just returned after lunch, woke the PC, and the frames are bunched to the top right of the main monitor once more. Sorry! I'm suspecting it's variations in the order the monitors are recognised on wakeup that changes things. So sometimes the PC spots monitor 1 and then monitor 2, other times it's 2 then 1. I certainly see my windows pop up on one monitor then get switched to the other monitor a second or two later quite often when I wake the PC. Windows being Windows.
Yeah Windows being Windows. I'll try to fix it!
As I say, a quick hacky workaround would simply be having a "Restart DesktopFrame" option on right-click of the taskbar icon. Would save a few clicks when I wake the PC. Not ideal I realise but better than no fix if it's intractable.
Should be fixed!
Seems to be working! fingers crossed