Fixed windows opening off-screen.

When a change in available real estate occurs, eg. when a secondary
monitor is unplugged.