Do not count siblings of a hidden pane that is the root of the layout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 20:58:32 +01:00
parent 0ce3f20a2d
commit 6b64ff92e6
2 changed files with 23 additions and 0 deletions

View File

@@ -1027,6 +1027,8 @@ window_count_tiled_siblings(struct layout_cell *lc)
struct layout_cell *lcsib;
u_int n = 0;
if (lc->parent == NULL)
return (0);
TAILQ_FOREACH(lcsib, &lc->parent->cells, entry) {
if (lcsib == lc)
continue;