Skip to content

Tiled layout: shrink neighbours to fit an app's minimum width, and say why a resize stops - #25

Merged
jsanzdev merged 2 commits into
mainfrom
tiled-min-width
Oct 19, 2026
Merged

jsanzdev merged 2 commits into
mainfrom
tiled-min-width

Conversation

@jsanzdev

@jsanzdev jsanzdev commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Layout: a tile whose window has a learned minimum width now takes that room from its neighbours by adjusting the tiled split ratios, instead of overlapping them. The split that sizes a tile is its own if side by side, else the nearest earlier side-by-side split (the same rule the resize path already used). Each split moves only as far as it must, and no part is left under 10% of its room.
  • Fallback: when the minimums can't all fit, tiles overlap their neighbours as before.
  • Message: a resize or width cycle stopped by an app's minimum shows on the workspace display: " has a minimum width of px, so Glide can't make it narrower." Translated into all seven languages.

Based on origin/main. Does not touch FocusWindow (PR #24).

Notes

  • A drag can only be seen once the window has moved past its minimum, so a drag that starts at the minimum isn't reported.
  • The width-cycle message fires when the next preset would go below the minimum. Scrolling-layout width cycling is not covered.

Tests

~/.dotnet/dotnet test tests/Glide.Core.Tests: 324 passed, 0 failed.

…y why a resize stops

A tile whose window has a learned minimum width now takes that room from
its neighbours by moving the splits, instead of overlapping them. If the
minimums can't all fit, tiles overlap as before.

A resize or width cycle that an app's minimum stops shows a short
message saying so, in every language.
@jsanzdev
jsanzdev merged commit 89fbbcc into main Oct 19, 2026
5 checks passed
@jsanzdev jsanzdev mentioned this pull request Oct 19, 2026
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.

1 participant