desktop: Avoid referencing the output's surface for pending surfaces