diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-11 05:33:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-11 05:33:49 +0000 |
| commit | b424a72384ba3527044b8a4a203c53b683128913 (patch) | |
| tree | 2dd55b5e047f4c6646ec2085c2a8af5a5cb2ac49 /src/Workspace.h | |
| parent | fba11bf0c628d1d3a71c67d97f300a57d0892f1a (diff) | |
converted from LinkedList to STL vector and list
Diffstat (limited to 'src/Workspace.h')
| -rw-r--r-- | src/Workspace.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Workspace.h b/src/Workspace.h index 01b520ad..7701467b 100644 --- a/src/Workspace.h +++ b/src/Workspace.h @@ -25,7 +25,8 @@ #include <X11/Xlib.h> -#include "LinkedList.h" +#include <vector> +#include <list> class BScreen; class Clientmenu; @@ -34,13 +35,17 @@ class OpenboxWindow; class Size; class Rect; +typedef std::vector<OpenboxWindow *> winVect; +typedef std::list<OpenboxWindow *> winList; + class Workspace { private: BScreen &screen; OpenboxWindow *lastfocus; Clientmenu *clientmenu; - LinkedList<OpenboxWindow> *stackingList, *windowList; + winVect _windows; + winList _zorder; char *name; int id, cascade_x, cascade_y; @@ -69,7 +74,6 @@ public: void focusWindow(OpenboxWindow *win); OpenboxWindow *getWindow(int); Bool isCurrent(void); - Bool isLastWindow(OpenboxWindow *); const int addWindow(OpenboxWindow *, Bool = False); const int removeWindow(OpenboxWindow *); const int getCount(void); |
