From 7d4e99b76047155c5aaa8453ff590f8e1e6befd3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 10 Oct 2024 10:17:16 +0300 Subject: layout/workspace: Reduce code duplication in adding windows --- src/layout/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/mod.rs') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 05cbdccd..58be1e1f 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -594,7 +594,7 @@ impl Layout { .map_or(false, |name| name.eq_ignore_ascii_case(workspace_name)) }) .unwrap(); - ws.add_window(window, true, width, is_full_width); + ws.add_window(None, window, true, width, is_full_width); None } } @@ -672,7 +672,7 @@ impl Layout { workspaces.push(Workspace::new_no_outputs(self.options.clone())); &mut workspaces[0] }; - ws.add_window(window, true, width, is_full_width); + ws.add_window(None, window, true, width, is_full_width); None } } -- cgit