Changeset 68f63a2 for global.c


Ignore:
Timestamp:
May 29, 2010, 1:14:57 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
1383b58
Parents:
7c8811c
git-author:
David Benjamin <davidben@mit.edu> (05/27/10 02:49:57)
git-committer:
David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
Message:
Port owl_viewwin to owl_window

A number of hacks. This is just a test run of the API.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r449af72 r68f63a2  
    511511
    512512void owl_global_relayout(owl_global *g) {
    513   owl_popwin *pw;
    514   owl_viewwin *vw;
    515 
    516513  if (!g->relayoutpending) return;
    517514  g->relayoutpending = 0;
     
    528525   * screen */
    529526  owl_function_calculate_topmsg(OWL_DIRECTION_NONE);
    530 
    531   /* recreate the popwin */
    532   pw = owl_global_get_popwin(g);
    533   if (owl_popwin_is_active(pw)) {
    534     /*
    535      * This is somewhat hacky; we probably want a proper windowing layer. We
    536      * destroy the popwin and recreate it. Then the viewwin is redirected to
    537      * the new window.
    538      */
    539     vw = owl_global_get_viewwin(g);
    540     owl_popwin_close(pw);
    541     owl_popwin_up(pw);
    542     owl_viewwin_set_curswin(vw, owl_popwin_get_curswin(pw),
    543         owl_popwin_get_lines(pw), owl_popwin_get_cols(pw));
    544     owl_viewwin_redisplay(vw);
    545   }
    546527
    547528  /* refresh stuff */
Note: See TracChangeset for help on using the changeset viewer.