diff --git a/src/desktop/space.rs b/src/desktop/space.rs index a0836b9..1dd1828 100644 --- a/src/desktop/space.rs +++ b/src/desktop/space.rs @@ -401,7 +401,7 @@ impl Space { /// Automatically calls `Window::refresh` for the window that belongs to the given surface, /// if managed by this space. - pub fn commit(&mut self, surface: &WlSurface) { + pub fn commit(&self, surface: &WlSurface) { if is_sync_subsurface(surface) { return; }