diff options
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 5d747cfe..5ccbebd1 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -477,12 +477,12 @@ impl<W: LayoutElement> Layout<W> { } } - pub fn find_window_and_output(&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.monitor_set { for mon in monitors { for ws in &mon.workspaces { if let Some(window) = ws.find_wl_surface(wl_surface) { - return Some((window.clone(), mon.output.clone())); + return Some((window, &mon.output)); } } } |
