Skip to content

Flatten tree#950

Open
polycatenane wants to merge 2 commits into
mahkoh:masterfrom
polycatenane:flatten_tree
Open

Flatten tree#950
polycatenane wants to merge 2 commits into
mahkoh:masterfrom
polycatenane:flatten_tree

Conversation

@polycatenane
Copy link
Copy Markdown
Contributor

closes #944

Comment on lines +759 to +761
SetFlattenTree {
enabled: bool,
},
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New IPC messages must be added at the end to not break existing configs.

@mahkoh
Copy link
Copy Markdown
Owner

mahkoh commented May 18, 2026

Please make this a tristate Never, Always, OnRemove where OnRemove only takes effect when the second-to-last child of a container is removed.

This requires adding a non_exhaustive enum to jay-config and a corresponding enum in Jay proper.

I think this should also be under the [theme] table in the toml config.

You also have to add a corresponding setting in the look-and-feel pane in the control center.

@polycatenane
Copy link
Copy Markdown
Contributor Author

Is the difference between Always and OnRemove that OnRemove lets you manually nest a single child deep in a tree? Always should be closest to how i3 behaves.

@mahkoh
Copy link
Copy Markdown
Owner

mahkoh commented May 19, 2026

Is the difference between Always and OnRemove that OnRemove lets you manually nest a single child deep in a tree?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flatten container tree

2 participants