1 /* treewm - an X11 window manager. 2 * Copyright (c) 2001-2002 Thomas J�ger <TheHunter2000 at web dot de> 3 * This code is released under the terms of the GNU GPL. 4 * See the included file LICENSE for details. 5 */ 6 7 #ifndef MANAGER_H 8 #define MANAGER_H 9 10 #include "global.h" 11 12 // see notes below 13 struct ClientList { 14 Client *client; 15 ClientList *next; 16 }; 17 18 19 void SigHandler(int); 20 21 class Manager { 22 public: 23 Manager(int argc, char **argv); 24 void AddDeleteClient(Client *); 25 void AddReDrawClient(Client *); 26 void CleanUp(); 27 void NextEvent(); 28 void HandleExpose(XExposeEvent &); 29 ~Manager(); 30 int Run(); 31 void Quit(); 32 Client *WantFocus,*ToBeRaised; 33 bool IgnoreLeave; 34 struct ClientList *MustBeDeleted, *FirstReDraw, *LastReDraw; 35 bool alive; 36 int fifo; 37 Window input; 38 39 }; 40 #endif 41