diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-17 14:56:29 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-17 22:31:19 -0700 |
| commit | b447b1f4de65ee706bdbbdb9b650ab030459c0fb (patch) | |
| tree | eff5fb4439b50d8617dbbf581930a25c15e894ee | |
| parent | 1a0fab05b6ac2a03bf683cba8fb77dbb4ad2e07f (diff) | |
| download | niri-b447b1f4de65ee706bdbbdb9b650ab030459c0fb.tar.gz niri-b447b1f4de65ee706bdbbdb9b650ab030459c0fb.tar.bz2 niri-b447b1f4de65ee706bdbbdb9b650ab030459c0fb.zip | |
layout: Rename argument from window to id
| -rw-r--r-- | src/layout/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index eaea331f..15d48d6a 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -3457,31 +3457,31 @@ impl<W: LayoutElement> Layout<W> { res } - pub fn set_fullscreen(&mut self, window: &W::Id, is_fullscreen: bool) { + pub fn set_fullscreen(&mut self, id: &W::Id, is_fullscreen: bool) { if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { - if move_.tile.window().id() == window { + if move_.tile.window().id() == id { return; } } for ws in self.workspaces_mut() { - if ws.has_window(window) { - ws.set_fullscreen(window, is_fullscreen); + if ws.has_window(id) { + ws.set_fullscreen(id, is_fullscreen); return; } } } - pub fn toggle_fullscreen(&mut self, window: &W::Id) { + pub fn toggle_fullscreen(&mut self, id: &W::Id) { if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { - if move_.tile.window().id() == window { + if move_.tile.window().id() == id { return; } } for ws in self.workspaces_mut() { - if ws.has_window(window) { - ws.toggle_fullscreen(window); + if ws.has_window(id) { + ws.toggle_fullscreen(id); return; } } |
