Save/restore focus terminal when switch workspace.