feat(workspace): keep the width of a window that moves to another workspace

A container goes from one workspace to another by being taken out of
one and put into the other, with nothing between them that both could
be asked, so a window that was moved started again with the default
width, as did one moved to another monitor.

Taking a container out of a workspace now says what its column was
given, which komorebi_layouts::scrolling keeps, and the strip of the
workspace that has the container next finds it there the first time it
sees it, before it is made to match the list. So the window is a column
of its own as wide as the column it left, whichever way it got there,
and a window that moves on takes what it has where it is. Nothing is
remembered for a container that no strip had been asked about.
This commit is contained in:
LGUG2Z committed 2026-10-29 16:38:53 -07:00
1 parent 767af481fd
commit 2363ff6c3a
3 files changed
+91 -1

No files matched your search

+2 -1
View File
@@ -77,6 +77,8 @@ Focus and move commands know about columns:
- A column keeps its width, and a [stack](../cli/stack.md) is still one tile showing one of its windows, as in any layout.
A column that you resized, or made the full width of the screen, keeps that as windows are added to it or taken out.
A window that you move to another workspace or monitor is a column of its own there, and keeps the width of the column
that it was in.
## Heights
@@ -158,7 +160,6 @@ arranged above and below each other rather than side by side, none of this appli
These are not done yet.
- Moving a window to another workspace or monitor makes it a column of its own with the default width.
- Switching to another layout and back keeps the widths, but a column whose windows were moved past each other in the
other layout is made again from the order that they are in.
- Every window has a border, including the windows resting at the edges, so you may see a thin line of one at the edge