mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout: Rename toplevel_bounds() to new_window_toplevel_bounds()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user