LGUG2Z / komorebi

A tiling window manager for Windows 🍉
https://lgug2z.github.io/komorebi/
Other
8.85k stars 175 forks source link

[BUG]: Documented layout behavior doesn't match actual behavior #977

Open mudnug opened 3 weeks ago

mudnug commented 3 weeks ago

Describe the bug There appears to be either a bug in the code or in the documentation.

Documentation states: If the number of windows is equal to or less than the total number of columns defined in a custom layout, the windows will be arranged in an equal-width columns.

When the number of windows is greater than the number of columns defined in the custom layout, the windows will begin to be arranged according to the constraints set on the Primary and Secondary columns of the layout.

To Reproduce

Use this custom layout:
[
  {
    "column": "Secondary",
    "configuration": {
      "Horizontal": 2
    }
  },
  {
    "column": "Primary",
    "configuration": {
      "WidthPercentage": 38
    }
  },
  {
    "column": "Tertiary",
    "configuration": "Horizontal"
  }
]

Open three apps.

Expected behavior If the number of windows is equal to or less than the total number of columns defined in a custom layout, the windows will be arranged in an equal-width columns.

Screenshots and Videos Two apps are horizontally tiled on left 2/3rds of screen and one app in a column on the right of the screen

Operating System OS Name: Microsoft Windows 11 Pro

mudnug commented 2 weeks ago

I would prefer To have three columns when I have three windows open, so if there is a workaround to fix this, I would be interested..