Set the Mir window role and discard empty region lists