Why does my application keeps switching to a different monitor when it regains focus?
Solution 1:
According to this forum post, (at Whirlpool.net, of all places!) FireFox only remembers the current location when it is not maximized:
Firefox only remember[s] which monitor they are on if you close Firefox while it is not maximised.
So procedure to get firefox to open maximised on the monitor of your choice in dual monitor setup:
- Un-maximise Firefox window
- Position un-maximised window on monitor of you choice
- Close Firefox window
- Reopen Firefox window
- Maximise Firefox window
- Close Firefox window
Now Firefox will open maximised on the screen you chose.
Following these steps resolved my long-standing weird issue.
More technical information on this issue can be found at this blog post on Multi-Monitor Programming Pitfalls which reveals it is not solely a FireFox issue.