Changeset 9379760


Ignore:
Timestamp:
Jun 20, 2010, 4:25:38 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, 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
Files:
2 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 */
  • window.h

    r33b64f22 r9379760  
    4646int owl_window_is_realized(owl_window *w);
    4747int owl_window_is_toplevel(owl_window *w);
     48int owl_window_is_subwin(owl_window *w);
    4849
    4950void owl_window_set_cursor(owl_window *w);
Note: See TracChangeset for help on using the changeset viewer.