Changeset fe49685 for window.c


Ignore:
Timestamp:
Jun 1, 2010, 12:25:27 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
933aa7d
Parents:
46e2e56
git-author:
David Benjamin <davidben@mit.edu> (05/31/10 22:33:30)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 00:25:27)
Message:
Be better about noticing failed window creations

Any failure and we simply don't realize the window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r46e2e56 rfe49685  
    248248    replace_panel(w->pan, w->win);
    249249  } else {
     250    if (w->parent == NULL || w->parent->win == NULL)
     251      return;
    250252    w->win = derwin(w->parent->win, w->nlines, w->ncols, w->begin_y, w->begin_x);
    251253  }
     
    319321    return;
    320322  _owl_window_create_curses(w);
     323  if (w->win == NULL)
     324    return;
    321325  /* schedule a repaint */
    322326  owl_window_dirty(w);
    323   /* map the children, unless we failed */
    324   if (w->win)
    325     owl_window_children_foreach_onearg(w, _owl_window_realize);
     327  /* map the children */
     328  owl_window_children_foreach_onearg(w, _owl_window_realize);
    326329}
    327330
Note: See TracChangeset for help on using the changeset viewer.