pub fn layer_for_surface(&self, surface: &WlSurface) -> Option<LayerSurface> {
        if !surface.as_ref().is_alive() {
            return None;
        }
        self.outputs.iter().find_map(|o| {
            let map = layer_map_for_output(o);
            map.layer_for_surface(surface).cloned()
        })
    }
/// Returns the layer matching a given surface, if any
Returns the layer matching a given surface, if any
Returns the layer matching a given surface if any
pub fn layer_for_surface(&self, surface: &WlSurface) -> Option<LayerSurface> {
        if !surface.as_ref().is_alive() {
            return None;
        }
        self.outputs.iter().find_map(|o| {
            let map = layer_map_for_output(o);
            map.layer_for_surface(surface).cloned()
        })
    }
pub fn layer_for_surface ( & self , surface : & WlSurface ) -> Option < LayerSurface > { if ! surface . as_ref ( ) . is_alive ( ) { return None ; } self . outputs . iter ( ) . find_map ( | o | { let map = layer_map_for_output ( o ) ; map . layer_for_surface ( surface ) . cloned ( ) } ) }
Returns the layer matching a given surface, if any
Returns the layer matching a given surface if any
&self
surface
&WlSurface
&self
surface
&WlSurface