Unified focus state save/restore mechanism for both buffer switching and minibuffer