Changeset d7c1dbe for window.c


Ignore:
Timestamp:
Jun 3, 2010, 1:31:20 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
8f9a044
Parents:
aab7af1
Message:
Remove the stacking order functions

We don't currently use them, and I'd rather wait until the 3-types-in-1
thing is resolved first.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    raab7af1 rd7c1dbe  
    507507  owl_window_set_position(w, nlines, ncols, w->begin_y, w->begin_x);
    508508}
    509 
    510 /** Stacking order **/
    511 
    512 void owl_window_top(owl_window *w) {
    513   if (!w->pan) {
    514     owl_function_debugmsg("Warning: owl_window_top only makes sense on top-level window");
    515     return;
    516   }
    517   top_panel(w->pan);
    518 }
    519 
    520 owl_window *owl_window_above(owl_window *w) {
    521   PANEL *pan;
    522 
    523   if (!w->pan) {
    524     owl_function_debugmsg("Warning: owl_window_above only makes sense on top-level window");
    525     return NULL;
    526   }
    527   pan = panel_above(w->pan);
    528   /* cast because panel_userptr pointlessly returns a const void * */
    529   return pan ? (void*) panel_userptr(pan) : NULL;
    530 }
    531 
    532 owl_window *owl_window_below(owl_window *w) {
    533   PANEL *pan;
    534 
    535   if (!w->pan) {
    536     owl_function_debugmsg("Warning: owl_window_above only makes sense on top-level window");
    537     return NULL;
    538   }
    539   pan = panel_below(w->pan);
    540   /* cast because panel_userptr pointlessly returns a const void * */
    541   return pan ? (void*) panel_userptr(pan) : NULL;
    542 }
Note: See TracChangeset for help on using the changeset viewer.