fn finalize_commit(
        &self,
        client: &mut Client,
        callbacks: &mut Vec<ObjectRef<Callback>>,
    ) -> Result<bool, Error> {
        ftrace::duration!("wayland", "SurfaceRole::commit");
        match self {
            SurfaceRole::XdgSurface(xdg_surface_ref) => {
                XdgSurface::finalize_commit(*xdg_surface_ref, client)
            }
            SurfaceRole::Subsurface(subsurface_ref) => {
                Ok(subsurface_ref.get_mut(client)?.finalize_commit(callbacks))
            }
        }
    }
/// Dispatches a commit command to the concrete role objects.
Dispatches a commit command to the concrete role objects.
Dispatches a commit command to the concrete role objects .
fn finalize_commit(
        &self,
        client: &mut Client,
        callbacks: &mut Vec<ObjectRef<Callback>>,
    ) -> Result<bool, Error> {
        ftrace::duration!("wayland", "SurfaceRole::commit");
        match self {
            SurfaceRole::XdgSurface(xdg_surface_ref) => {
                XdgSurface::finalize_commit(*xdg_surface_ref, client)
            }
            SurfaceRole::Subsurface(subsurface_ref) => {
                Ok(subsurface_ref.get_mut(client)?.finalize_commit(callbacks))
            }
        }
    }
fn finalize_commit ( & self , client : & mut Client , callbacks : & mut Vec < ObjectRef < Callback > > , ) -> Result < bool , Error > { ftrace :: duration ! ( " " " " ) ; match self { SurfaceRole :: XdgSurface ( xdg_surface_ref ) => { XdgSurface :: finalize_commit ( * xdg_surface_ref , client ) } SurfaceRole :: Subsurface ( subsurface_ref ) => { Ok ( subsurface_ref . get_mut ( client ) ? . finalize_commit ( callbacks ) ) } } }
Dispatches a commit command to the concrete role objects.
Dispatches a commit command to the concrete role objects .
&self
client
&mut Client
callbacks
&mut Vec<ObjectRef<Callback>>
&self
client
&mut Client
callbacks
&mut Vec<ObjectRef<Callback>>