From 22819d05d314a77553abf467514cebadcb5fd5a2 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 26 Dec 2015 09:35:37 +1100 Subject: [PATCH] pane: improve usefulness of abs_z In abs_z calculation, the child should be higher than the parent, incase both are drawn to. This ensures children pane will cover relevant parts of parent. Signed-off-by: NeilBrown --- core-pane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-pane.c b/core-pane.c index 2d541c26..508bfd5e 100644 --- a/core-pane.c +++ b/core-pane.c @@ -110,7 +110,7 @@ static void __pane_refresh(struct cmd_info ci) struct pane *p = ci.home; int ret = 0; int nextz; - int abs_z = p->abs_z; + int abs_z = p->abs_z + 1; if (p->damaged & DAMAGED_CLOSED) { p->abs_zhi = abs_z; -- 2.39.5