Changeset 9379760 for window.c


Ignore:
Timestamp:
Jun 20, 2010, 4:25:38 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
b9d04ad
Parents:
58ea109
Message:
Add owl_window_is_subwin

Better not to always infer !screen && !toplevel => subwin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r58ea109 r9379760  
    315315}
    316316
     317int owl_window_is_subwin(owl_window *w)
     318{
     319  return w->pan == NULL && !w->is_screen;
     320}
     321
    317322static void _owl_window_realize(owl_window *w)
    318323{
     
    403408  if (!w->dirty) return;
    404409  if (w->win) {
    405     if (!owl_window_is_toplevel(w)) {
     410    if (owl_window_is_subwin(w)) {
    406411      /* If a subwin, we might have gotten random touched lines from wsyncup or
    407412       * past drawing. That information is useless, so we discard it all */
Note: See TracChangeset for help on using the changeset viewer.