Changeset b928b3a


Ignore:
Timestamp:
Mar 2, 2010, 9:14:44 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8099357
Parents:
8ae2de9
git-author:
David Benjamin <davidben@mit.edu> (10/30/09 14:26:12)
git-committer:
David Benjamin <davidben@mit.edu> (03/02/10 21:14:44)
Message:
Remove popwin special-casing

Finally, we can have our cake! Now that libpanel takes care of stacking,
we can get rid of a lot of the painting logic that has to think about
and special-case window order.

Here's the first of the lobotomies.

Signed-off-by: David Benjamin <davidben@mit.edu>
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r8ae2de9 rb928b3a  
    215215  /* redisplay etc. */
    216216  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    217   if (owl_popwin_is_active(owl_global_get_popwin(&g))) {
    218     owl_popwin_refresh(owl_global_get_popwin(&g));
    219   }
    220217  update_panels();
    221218  owl_global_set_needrefresh(&g);
     
    12681265  update_panels();
    12691266
    1270   if (owl_popwin_is_active(owl_global_get_popwin(&g))) {
    1271     owl_popwin_refresh(owl_global_get_popwin(&g));
    1272   }
    1273  
    12741267  sepbar("");
    12751268  owl_function_makemsg("");
  • global.c

    r8ae2de9 rb928b3a  
    537537  owl_function_full_redisplay();
    538538
    539   /* TODO: this should handle other forms of popwins */
    540   if (owl_popwin_is_active(owl_global_get_popwin(g))
    541       && owl_global_get_viewwin(g)) {
    542     owl_popwin_refresh(owl_global_get_popwin(g));
    543     owl_viewwin_redisplay(owl_global_get_viewwin(g), 0);
    544   }
    545 
    546539  owl_function_debugmsg("New size is %i lines, %i cols.", size.ws_row, size.ws_col);
    547540  owl_function_makemsg("");
  • owl.c

    r8ae2de9 rb928b3a  
    303303    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    304304    sepbar(NULL);
    305     if (owl_popwin_is_active(owl_global_get_popwin(&g))) {
    306       owl_popwin_refresh(owl_global_get_popwin(&g));
    307       /* TODO: this is a broken kludge */
    308       if (owl_global_get_viewwin(&g)) {
    309         owl_viewwin_redisplay(owl_global_get_viewwin(&g), 0);
    310       }
    311     }
    312305    owl_global_set_needrefresh(&g);
    313306  }
     
    641634    typwin=owl_global_get_curs_typwin(&g);
    642635
    643     /* if a popwin just came up, refresh it */
    644     pw=owl_global_get_popwin(&g);
    645     if (owl_popwin_is_active(pw) && owl_popwin_needs_first_refresh(pw)) {
    646       owl_popwin_refresh(pw);
    647       owl_popwin_no_needs_first_refresh(pw);
    648       owl_global_set_needrefresh(&g);
    649       /* TODO: this is a broken kludge */
    650       if (owl_global_get_viewwin(&g)) {
    651         owl_viewwin_redisplay(owl_global_get_viewwin(&g), 0);
    652       }
    653     }
    654 
    655636    /* update the terminal if we need to */
    656637    if (owl_global_is_needrefresh(&g)) {
  • popexec.c

    r2a17b63 rb928b3a  
    3131                        owl_popwin_get_lines(pw), owl_popwin_get_cols(pw),
    3232                        "");
    33   owl_popwin_refresh(pw);
    3433  owl_viewwin_redisplay(v, 0);
    3534  owl_global_set_needrefresh(&g);
Note: See TracChangeset for help on using the changeset viewer.