From: NeilBrown Date: Fri, 25 Dec 2015 22:35:37 +0000 (+1100) Subject: pane: improve usefulness of abs_z X-Git-Tag: lca2016~38 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=22819d05d314a77553abf467514cebadcb5fd5a2;p=edlib.git 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 --- 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;