From 751345759a0b45f4f6d79cdd1c65a71780cb4a27 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 1 Oct 2023 07:21:53 +0400 Subject: Make find_window_and_output() accept non-mut self --- src/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/layout.rs b/src/layout.rs index 38c076b6..6476598e 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -604,10 +604,10 @@ impl MonitorSet { } } - pub fn find_window_and_output(&mut self, wl_surface: &WlSurface) -> Option<(W, Output)> { + pub fn find_window_and_output(&self, wl_surface: &WlSurface) -> Option<(W, Output)> { if let MonitorSet::Normal { monitors, .. } = self { for mon in monitors { - for ws in &mut mon.workspaces { + for ws in &mon.workspaces { if let Some(window) = ws.find_wl_surface(wl_surface) { return Some((window.clone(), mon.output.clone())); } -- cgit