fixes #37: keep width/height even if too wide/tall, maximize later instead
fixes #39: moving from and to the primary monitor and back is size-invariant; respects settings with more than two monitors