space: commit does not need mutable self

This commit is contained in:
Victor Brekenfeld 2021-12-20 13:40:08 +01:00
parent a20fd0c65d
commit a948ff8829
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ impl Space {
/// Automatically calls `Window::refresh` for the window that belongs to the given surface, /// Automatically calls `Window::refresh` for the window that belongs to the given surface,
/// if managed by this space. /// if managed by this space.
pub fn commit(&mut self, surface: &WlSurface) { pub fn commit(&self, surface: &WlSurface) {
if is_sync_subsurface(surface) { if is_sync_subsurface(surface) {
return; return;
} }