diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-29 12:38:43 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-29 12:50:16 +0300 |
| commit | 3bb7e603115d59441a700deadf11d9fd834386ea (patch) | |
| tree | cd3e03e03dff6873255b81a26dbdda6a01ea8459 /src/layout/mod.rs | |
| parent | d639eb0032a1022f4c76b40646cc7e501e568f35 (diff) | |
| download | niri-3bb7e603115d59441a700deadf11d9fd834386ea.tar.gz niri-3bb7e603115d59441a700deadf11d9fd834386ea.tar.bz2 niri-3bb7e603115d59441a700deadf11d9fd834386ea.zip | |
layout: Remove duplicated function
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index f35a3b76..658d50af 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1576,23 +1576,6 @@ impl<W: LayoutElement> Layout<W> { } } - pub fn activate_output(&mut self, output: &Output) { - let MonitorSet::Normal { - monitors, - active_monitor_idx, - .. - } = &mut self.monitor_set - else { - return; - }; - - let idx = monitors - .iter() - .position(|mon| &mon.output == output) - .unwrap(); - *active_monitor_idx = idx; - } - pub fn active_output(&self) -> Option<&Output> { let MonitorSet::Normal { monitors, |
