]> git.neil.brown.name Git - edlib.git/commitdiff
pane: improve usefulness of abs_z
authorNeilBrown <neil@brown.name>
Fri, 25 Dec 2015 22:35:37 +0000 (09:35 +1100)
committerNeilBrown <neil@brown.name>
Fri, 25 Dec 2015 22:35:37 +0000 (09:35 +1100)
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 <neil@brown.name>
core-pane.c

index 2d541c26ababae8a5fac83a322964ec87308e9a7..508bfd5e6674928d4616b6c3210fbe241d738a4c 100644 (file)
@@ -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;