mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-12 16:12:44 +02:00
refactor(wm): correct naming in resize-axis logic
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user