[Y-devel] initial task manager design

Thomas spiralman at softhome.net
Fri Feb 20 22:53:44 GMT 2004


ok, i decided to start working on a taskmanager module, and while i make sure 
i understand how modules work in Y, i thought i would post what i was 
thinking of for the TaskManager struct.  let me know if you think there is 
something that should be added, or if there is a better way to do something.

struct TaskManager
{
  struct Module *module;
  
  /* unloads the task manager */
  void (*unload) (struct TaskManager *);
  
  /* called when a new window is created */
  void (*addWindow) (struct TaskManager *, struct Window *);
  
  /* called when a window has been minimized */
  void (*windowMinimized) (struct TaskManager *, struct Window *);
  
  /* called when a window has been unminimized */
  void (*windowUnMinimized) (struct TaskManager *, struct Window *);
}

I am not sure about windowUnMinimized because the task manager would be doing 
most of the minimizing/maximizing (although i guess a window could hide 
itself).

Thomas Stephens
spiralman at softhome.net



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved