I'm not sure if this is the correct place to post this, please let me know. I couldn't find any place to submit technical feedback or bug reports, so I'm putting this here, I'll gladly resubmit this via any proper channel/method.
I have 3 monitors. Two of my monitors are HDMI, the primary monitor is connected via DisplayPort. I have to have this monitor connected via DP because it is 144Hz, and neither HDMI nor DVI will support that refresh rate, along with g-sync/v-sync.
Whenever I turn off my primary display all the icons get shifted to the other two monitors, as one of them will become primary. When I turn the monitor back on it becomes my primary display again, but the fences do NOT move back to the proper positions. Restoring fence snapshots does not work either. I've checked the JSON files, and it appears that the monitors are named something like display4, display5, etc. Every time I turn off my DisplayPort monitor Windows detects it gone via PnP and removes it, then adds it again when powered back on. So each time it power cycles it becomes the next highest integer. Therefore if the backup/snapshot says a certain fence belongs on monitor 1, that monitor may end up being called display4 or display17 or whatever depending on how many times it's been turned on/off.
I don't know exactly what the solution is. I think in the past (when I've had the time and patience to do so), restarting the computer would reset the counters and my primary display would return to being display_1 or whatever. I haven't rebooted to fix it in a while, I simply stopped turning off my monitor. I forgot about the issue after a while and I turned off my monitor last night, and this morning everything was messed up again. I just dragged all the fences back and resized them.
I would really appreciate some kind of proper solution for this.
FYI: My monitor does NOT have any kind of feature to disable PnP recognition to avoid the issue of Windows dropping/adding it when the monitor turns on and off. I've looked into this already, some monitors have those settings, my doesn't. After a windows update about a year or two ago (on Win10) my DP monitor will turn on/off every few minutes. It turns on, says 'no signal', then goes back to sleep. It does this every few minutes, forever while the computer is on but the screens are asleep. This is why I turn this monitor off. I did a clean install of Windows 11 about 2 weeks ago, and am running Fences 4 now, and the issue still exists. Sometimes I have my computer running tasks overnight and I don't want the screen doing this crazy flashing/blinking nonsense, so I just turn it off. Please, I don't want people offering any solutions related to why I turn my monitor off, I'm simply letting you know that the way Fences stores its layout data makes it less than ideal for people with PnP DisplayPort monitors. I would think a program like Fences *should* be able to handle disconnecting & reconnecting DisplayPort monitors, and that's my concern.
Windows will identify my primary monitor as display 1 after it's reconnected, but the identifier in the fences JSON files (if I save the layouts again) will show a new incremental number (eg: display4, display5, etc). I think if fences could detect the monitor identifiers the way windows display settings do, and it stored that info along with resolutions, etc, you could probably use that info to resolve this issue.
Thanks,
Keith