Support "KeepDockOnPrimaryHead" when restoring state