compositor: activate the last active surface when unmapping the active one

Keep a list of the surfaces that are activated, and when the topmost one,
i.e. the active one, is unmapped, remove it from the list and activate
the second topmost one.