From 0719dcf2e75938fc738b6e18deb377cc21fbb492 Mon Sep 17 00:00:00 2001 From: Dane Jensen Date: Sat, 25 Apr 2026 15:05:58 -0700 Subject: [PATCH] fixed site of null dereference in layout.c --- layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout.c b/layout.c index b83af8a4..df7c5177 100644 --- a/layout.c +++ b/layout.c @@ -262,6 +262,7 @@ layout_fix_offsets1(struct layout_cell *lc) xoff = lc->xoff; TAILQ_FOREACH(lcchild, &lc->cells, entry) { if (lcchild->type == LAYOUT_WINDOWPANE && + lcchild->wp != NULL && lcchild->wp->flags & PANE_MINIMISED) continue; lcchild->xoff = xoff; @@ -274,6 +275,7 @@ layout_fix_offsets1(struct layout_cell *lc) yoff = lc->yoff; TAILQ_FOREACH(lcchild, &lc->cells, entry) { if (lcchild->type == LAYOUT_WINDOWPANE && + lcchild->wp != NULL && lcchild->wp->flags & PANE_MINIMISED) continue; lcchild->xoff = lc->xoff;