From b447b1f4de65ee706bdbbdb9b650ab030459c0fb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 17 Mar 2025 14:56:29 +0300 Subject: layout: Rename argument from window to id --- src/layout/mod.rs | 16 ++++++++-------- 1 file 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 Layout { 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; } } -- cgit