Changeset aab7af1


Ignore:
Timestamp:
Jun 3, 2010, 1:29:56 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
d7c1dbe
Parents:
e8128c5
Message:
Make unlinked handling more explicit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    rf70a7a3 raab7af1  
    229229    resizeterm(w->nlines, w->ncols);
    230230    w->win = stdscr;
    231   } else if (w->pan) {
    232     w->win = newwin(w->nlines, w->ncols, w->begin_y, w->begin_x);
    233     replace_panel(w->pan, w->win);
    234231  } else {
     232    /* Explicitly disallow realizing an unlinked non-root */
    235233    if (w->parent == NULL || w->parent->win == NULL)
    236234      return;
    237     w->win = derwin(w->parent->win, w->nlines, w->ncols, w->begin_y, w->begin_x);
     235    if (w->pan) {
     236      w->win = newwin(w->nlines, w->ncols, w->begin_y, w->begin_x);
     237      replace_panel(w->pan, w->win);
     238    } else {
     239      w->win = derwin(w->parent->win, w->nlines, w->ncols, w->begin_y, w->begin_x);
     240    }
    238241  }
    239242}
Note: See TracChangeset for help on using the changeset viewer.