From 873f81ccb1449119846de8d4e6e0e8899236100a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 10:05:01 -0300 Subject: Search converge 1/6: attached panes, a pane under its owner on the owner's rows alone, fixed height, moving, folding and closing with it --- src/panes.zig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/panes.zig') diff --git a/src/panes.zig b/src/panes.zig index b535993e..14df07e9 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -101,6 +101,13 @@ pub const Pane = struct { vweight: f32 = 1, /// A folded pane keeps its expansion weight, but occupies only its tag row. collapsed: bool = false, + /// The serial of the pane this one is attached to, its owner: a query + /// pane or its +Preview sits right under its owner in the owner's + /// column, takes its rows from the owner alone, and moves, folds and + /// closes with it (layout.zig, "Attached panes"). An owner that is + /// gone, or a pane no longer right under its owner's group, leaves it + /// an ordinary pane (layout.keepGroups). + attached_to: ?u32 = null, cols: u16, rows: u16, greet: bool = false, -- cgit v1.3