summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/root.zig b/core/root.zig
index b6835115..4a9b6e10 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -141,11 +141,13 @@ pub const TagKind = Layer.Kind;
/// too long for its width.
pub const MAX_TAG_ROWS = 8;
/// Panes, then columns, then the workspace bar, then each pane's notice
-/// bands: a band to a tag, however many lines it has; then each pane's
-/// rows unrolled under its tag (Band.zig).
-pub const MAX_TAG_LAYERS = BAND_LAYER_BASE + MAX_PANES;
+/// bands: a band to a tag, however many lines it has; then the rows
+/// unrolled under the one tag out of rest (Band.zig: a view has one, the
+/// keyboard's, SPEC ยง3.4). A frame makes many a temporary Surface, each
+/// with every layer: a layer to a pane here cost every frame 0.9%.
+pub const MAX_TAG_LAYERS = BAND_LAYER + 1;
pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 1;
-pub const BAND_LAYER_BASE = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max;
+pub const BAND_LAYER = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max;
/// Columns a session holds (each costs about 8 KB of state, a column tag
/// being most of it).
pub const MAX_COLS = 16;