Changeset 9c01a5e
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 3eb599d
- Parents:
- eaa9053
- git-author:
- Anders Kaseorg <andersk@mit.edu> (07/22/09 03:34:57)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
keys.c
rd43edd2 r9c01a5e 344 344 void owl_keys_popless_postalways(owl_input j) { 345 345 owl_viewwin *v = owl_global_get_viewwin(&g); 346 owl_popwin *pw = owl_global_get_popwin(&g);346 const owl_popwin *pw = owl_global_get_popwin(&g); 347 347 348 348 if (pw && owl_popwin_is_active(pw) && v) { -
popwin.c
rd43edd2 r9c01a5e 66 66 } 67 67 68 int owl_popwin_is_active( owl_popwin *pw)68 int owl_popwin_is_active(const owl_popwin *pw) 69 69 { 70 70 if (pw->active==1) return(1); … … 73 73 74 74 /* this will refresh the border as well as the text area */ 75 int owl_popwin_refresh( owl_popwin *pw)75 int owl_popwin_refresh(const owl_popwin *pw) 76 76 { 77 77 touchwin(pw->borderwin); … … 84 84 } 85 85 86 WINDOW *owl_popwin_get_curswin( owl_popwin *pw)86 WINDOW *owl_popwin_get_curswin(const owl_popwin *pw) 87 87 { 88 88 return(pw->popwin); 89 89 } 90 90 91 int owl_popwin_get_lines( owl_popwin *pw)91 int owl_popwin_get_lines(const owl_popwin *pw) 92 92 { 93 93 return(pw->lines-2); 94 94 } 95 95 96 int owl_popwin_get_cols( owl_popwin *pw)96 int owl_popwin_get_cols(const owl_popwin *pw) 97 97 { 98 98 return(pw->cols-2); 99 99 } 100 100 101 int owl_popwin_needs_first_refresh( owl_popwin *pw)101 int owl_popwin_needs_first_refresh(const owl_popwin *pw) 102 102 { 103 103 if (pw->needsfirstrefresh) return(1);
Note: See TracChangeset
for help on using the changeset viewer.