pub fn commit(&self, surface: &WlSurface) {
        if is_sync_subsurface(surface) {
            return;
        }
        let mut root = surface.clone();
        while let Some(parent) = get_parent(&root) {
            root = parent;
        }
        if let Some(window) = self.windows().find(|w| w.toplevel().get_surface() == Some(&root)) {
            window.refresh();
        }
    }
/// Should be called on commit to let the space automatically call [`Window::refresh`]
/// for the window that belongs to the given surface, if managed by this space.
Should be called on commit to let the space automatically call [`Window::refresh`]
for the window that belongs to the given surface, if managed by this space.
Should be called on commit to let the space automatically call [ ` Window :: refresh ` ] for the window that belongs to the given surface if managed by this space .
pub fn commit(&self, surface: &WlSurface) {
        if is_sync_subsurface(surface) {
            return;
        }
        let mut root = surface.clone();
        while let Some(parent) = get_parent(&root) {
            root = parent;
        }
        if let Some(window) = self.windows().find(|w| w.toplevel().get_surface() == Some(&root)) {
            window.refresh();
        }
    }
pub fn commit ( & self , surface : & WlSurface ) { if is_sync_subsurface ( surface ) { return ; } let mut root = surface . clone ( ) ; while let Some ( parent ) = get_parent ( & root ) { root = parent ; } if let Some ( window ) = self . windows ( ) . find ( | w | w . toplevel ( ) . get_surface ( ) == Some ( & root ) ) { window . refresh ( ) ; } }
Should be called on commit to let the space automatically call [`Window::refresh`]
for the window that belongs to the given surface, if managed by this space.
Should be called on commit to let the space automatically call [ ` Window :: refresh ` ] for the window that belongs to the given surface if managed by this space .
&self
surface
&WlSurface
&self
surface
&WlSurface