Many multi-monitor users experience the windows problem cause by rapid hot-plug detect which rearranges icons and applications when a monitor get switched of. While I agree this is a windows problem, unfortunately fences is following it by rearranging fences as well.
While this is not a bad thing at first (for example if a monitor fails) I would like to request a “Multi-Display change behavior” option to avoid to have to restore previous layouts with the potential result of losing new icons. This option governs the behavior when monitors are reconfigured for some reason.
This would be a selection option with “Rearrange fences” (1), “Fallback” (2), “Enforce position ” (3)
1) Is the current behavior where fences are rearranged to the remaining monitors
2) Initially same behavior than now, but restoring the original layout once the original monitor configuration is restored (same number of monitors, same Rectangle for each monitor in MONITORINFO). If the number of monitors is same but not the rectangle (for example if new drive installation rearranges monitors), icons should be restored on the corresponding monitors (by their relative rect position) and scaled into the new resolution, but still waiting for the complete restoration of the original configuration (at least as long as the current layout is not manually saved).
3) This will keep the fences position at all times possibly hiding some if a monitor gets switched off
Problem: I am not sure if there is a reliable way of uniquely detecting hardware monitors in all situations. If not fences could not reliably kept on the correct monitor when one is switched of in case of option 3. If such a detection is reliable however, the fallback option (2) could be split in preferring to fallback on monitor or position.