Function smithay::wayland::compositor::with_surface_tree_downward

source ยท
pub fn with_surface_tree_downward<F1, F2, F3, T>(
    surface: &WlSurface,
    initial: T,
    filter: F1,
    processor: F2,
    post_filter: F3
)
Available on crate feature wayland_frontend only.
Expand description

Access the data of a surface tree from top to bottom

Behavior is the same as with_surface_tree_upward, but the processing is done in the reverse order, from the nearest of the screen to the deepest.

This would typically be used to find out which surface of a subsurface tree has been clicked for example.