refactor(wm): correct naming in resize-axis logic

This commit is contained in:
LGUG2Z
2022-06-14 16:59:13 -07:00
parent 34a7b2eb0c
commit 5f325a7458
+2 -2
View File
@@ -380,7 +380,7 @@ impl WindowManager {
// with this signal // with this signal
let workspace = self.focused_workspace_mut()?; let workspace = self.focused_workspace_mut()?;
let container_len = workspace.containers().len(); let container_len = workspace.containers().len();
let has_layout_rules = workspace.layout_rules().is_empty(); let no_layout_rules = workspace.layout_rules().is_empty();
if let Layout::Custom(ref mut custom) = workspace.layout_mut() { if let Layout::Custom(ref mut custom) = workspace.layout_mut() {
if matches!(axis, Axis::Horizontal) { if matches!(axis, Axis::Horizontal) {
@@ -388,7 +388,7 @@ impl WindowManager {
.primary_width_percentage() .primary_width_percentage()
.unwrap_or(100 / custom.len()); .unwrap_or(100 / custom.len());
if has_layout_rules { if no_layout_rules {
match sizing { match sizing {
Sizing::Increase => { Sizing::Increase => {
custom.set_primary_width_percentage(percentage + 5); custom.set_primary_width_percentage(percentage + 5);