Changeset 8ae2de9 for functions.c


Ignore:
Timestamp:
Mar 2, 2010, 9:14:44 PM (12 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b928b3a
Parents:
be1ae91
git-author:
David Benjamin <davidben@mit.edu> (10/30/09 14:31:56)
git-committer:
David Benjamin <davidben@mit.edu> (03/02/10 21:14:44)
Message:
Attach PANELs to all of our WINDOWs

We replace wnoutrefresh with update_panels (except in set cursor; there
we have to guarantee that the window is empty.). The viewwin does not
get a PANEL because it's weird and currently leeches onto someone else's
WINDOW.

Resizing is also rather fiddly because panel wants to know about window
resizes. Not completely sure I got it right yet. The only library I know
of that does something like with with ncurses (libgnt) and they
endwin/refresh to resize the screen.

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r91634ec r8ae2de9  
    218218    owl_popwin_refresh(owl_global_get_popwin(&g));
    219219  }
    220   wnoutrefresh(owl_global_get_curs_recwin(&g));
     220  update_panels();
    221221  owl_global_set_needrefresh(&g);
    222222}
     
    12521252void owl_function_set_cursor(WINDOW *win)
    12531253{
     1254  /* Be careful that this window is actually empty, otherwise panels get confused */
    12541255  wnoutrefresh(win);
    12551256}
     
    12651266      redrawwin(owl_global_get_curs_msgwin(&g));
    12661267
    1267   wnoutrefresh(owl_global_get_curs_recwin(&g));
    1268   wnoutrefresh(owl_global_get_curs_sepwin(&g));
    1269   wnoutrefresh(owl_global_get_curs_typwin(&g));
    1270   wnoutrefresh(owl_global_get_curs_msgwin(&g));
     1268  update_panels();
    12711269
    12721270  if (owl_popwin_is_active(owl_global_get_popwin(&g))) {
     
    34043402  owl_function_debugmsg("makemsg: %s", buff);
    34053403  waddstr(owl_global_get_curs_msgwin(&g), buff); 
    3406   wnoutrefresh(owl_global_get_curs_msgwin(&g));
     3404  update_panels();
    34073405  owl_global_set_needrefresh(&g);
    34083406  va_end(ap);
Note: See TracChangeset for help on using the changeset viewer.