Repository navigation
Wrap windows within each workspace card - #8
Merged
Merged
Conversation
Reproduce the compositor's geometry only when `appearance.wrap_windows` is false. The default now reflows windows into an aspect-preserving grid that picks the column count using the most card space, so a row of tall tiles no longer renders as a thin strip. Move placement into `src/layout.rs` so rendering and pointer hit-testing share the same rectangles, and add `scripts/try-wrap.sh` / `just try-wrap` for a live overlay check against an isolated config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workspace cards now reflow their windows into an aspect-preserving wrapping grid instead of reproducing the compositor's exact geometry. A workspace with several side-by-side tiles no longer renders as a thin strip, so the card's space is used much better.
Changes
appearance.wrap_windows(defaulttrue); setting it tofalserestores the previous geometry-preserving layout.src/layout.rs; rendering and pointer hit-testing now consume the same rectangles.AGENTS.mdinvariants.scripts/try-wrap.sh/just try-wrapas a live Hyprland/Sway harness with an isolated config.Testing
just check— formatting, clippy with-D warnings, and 92 unit tests pass.cargo build --release --lockedpasses.shellcheck scripts/try-wrap.shpasses.just try-wrap, thenjust try-wrap geometryto compare with the old layout; clean up withjust try-wrap clean.