Changeset 9eb38bb for commands.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 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:
d574d61
Parents:
8ee712e0
git-author:
David Benjamin <davidben@mit.edu> (08/01/10 14:09:34)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Likewise, don't reuse a global owl_viewwin

This means we don't have to support plugging and unplugging that thing
over and over. We also can almost entirely drop the global owl_viewwin.
Most of the code gets it from the context anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r8ee712e0 r9eb38bb  
    27722772  pw = owl_global_get_popwin(&g);
    27732773  owl_global_set_popwin(&g, NULL);
    2774   owl_viewwin_cleanup(vw);
     2774  /* Kind of a hack, but you can only have one active viewwin right
     2775   * now anyway. */
     2776  if (vw == owl_global_get_viewwin(&g))
     2777    owl_global_set_viewwin(&g, NULL);
     2778  owl_viewwin_delete(vw);
    27752779  owl_popwin_delete(pw);
    27762780  owl_global_pop_context(&g);
Note: See TracChangeset for help on using the changeset viewer.