diff --git a/src/layout/floating.rs b/src/layout/floating.rs index 15c99e87..342663ac 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -318,7 +318,7 @@ impl FloatingSpace { }) } - pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size { + pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size { let border_config = rules.border.resolve_against(self.options.border); compute_toplevel_bounds(border_config, self.working_area.size) } diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index e1593251..08e133fb 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -411,7 +411,7 @@ impl ScrollingSpace { col.is_fullscreen } - pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size { + pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size { let border_config = rules.border.resolve_against(self.options.border); compute_toplevel_bounds(border_config, self.working_area.size, self.options.gaps) } diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 519a9c61..5bebeb8a 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -797,9 +797,9 @@ impl Workspace { } if is_floating { - state.bounds = Some(self.floating.toplevel_bounds(rules)); + state.bounds = Some(self.floating.new_window_toplevel_bounds(rules)); } else { - state.bounds = Some(self.scrolling.toplevel_bounds(rules)); + state.bounds = Some(self.scrolling.new_window_toplevel_bounds(rules)); } }); }