[Bug 10841] Restore display resolution when focus is lost or on exit