layout: Rename toplevel_bounds() to new_window_toplevel_bounds()
Browse files at this commit7ec771f7ec4415695b1e5fb3c90ac54eac3dd5c3Parent: a42a5ac3 changed files +4 -4
- src/layout/floating.rs +1 -1
- src/layout/scrolling.rs +1 -1
- src/layout/workspace.rs +2 -2
src/layout/floating.rsmodified+1 -1
| @@ -318,7 +318,7 @@ impl<W: LayoutElement> FloatingSpace<W> { | |||
| 318 | }) | 318 | }) |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | - pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> { | 321 | + pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> { |
| 322 | let border_config = rules.border.resolve_against(self.options.border); | 322 | let border_config = rules.border.resolve_against(self.options.border); |
| 323 | compute_toplevel_bounds(border_config, self.working_area.size) | 323 | compute_toplevel_bounds(border_config, self.working_area.size) |
| 324 | } | 324 | } |
src/layout/scrolling.rsmodified+1 -1
| @@ -411,7 +411,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { | |||
| 411 | col.is_fullscreen | 411 | col.is_fullscreen |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | - pub fn toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> { | 414 | + pub fn new_window_toplevel_bounds(&self, rules: &ResolvedWindowRules) -> Size<i32, Logical> { |
| 415 | let border_config = rules.border.resolve_against(self.options.border); | 415 | let border_config = rules.border.resolve_against(self.options.border); |
| 416 | compute_toplevel_bounds(border_config, self.working_area.size, self.options.gaps) | 416 | compute_toplevel_bounds(border_config, self.working_area.size, self.options.gaps) |
| 417 | } | 417 | } |
src/layout/workspace.rsmodified+2 -2
| @@ -797,9 +797,9 @@ impl<W: LayoutElement> Workspace<W> { | |||
| 797 | } | 797 | } |
| 798 | 798 | ||
| 799 | if is_floating { | 799 | if is_floating { |
| 800 | - state.bounds = Some(self.floating.toplevel_bounds(rules)); | 800 | + state.bounds = Some(self.floating.new_window_toplevel_bounds(rules)); |
| 801 | } else { | 801 | } else { |
| 802 | - state.bounds = Some(self.scrolling.toplevel_bounds(rules)); | 802 | + state.bounds = Some(self.scrolling.new_window_toplevel_bounds(rules)); |
| 803 | } | 803 | } |
| 804 | }); | 804 | }); |
| 805 | } | 805 | } |