layout: Rename toplevel_bounds() to new_window_toplevel_bounds()

This commit is contained in:
Ivan Molodetskikh
2025-02-06 10:54:48 +03:00
parent a42a5ac696
commit 7ec771f7ec
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ impl<W: LayoutElement> FloatingSpace<W> {
})
}
pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> {
pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> {
let border_config = rules.border.resolve_against(self.options.border);
compute_toplevel_bounds(border_config, self.working_area.size)
}
+1 -1
View File
@@ -411,7 +411,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
col.is_fullscreen
}
pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> {
pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> {
let border_config = rules.border.resolve_against(self.options.border);
compute_toplevel_bounds(border_config, self.working_area.size, self.options.gaps)
}
+2 -2
View File
@@ -797,9 +797,9 @@ impl<W: LayoutElement> Workspace<W> {
}
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));
}
});
}