window-actor/wayland: Improve scanout candidate check
By ignoring obcured surfaces we can generalize the single-pixel-buffer background check to work with arbitrary surface trees, as long as the two top ones are the background and content surfaces.
As a nice side effect of this, clients like Firefox now usually take the
shorter meta_window_is_fullscreen (window) && n_visible_surface_actors == 1
route.
Related: gtk!7136 (merged)
Edited by Robert Mader