From b424a72384ba3527044b8a4a203c53b683128913 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 11 May 2002 05:33:49 +0000 Subject: converted from LinkedList to STL vector and list --- src/Workspace.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/Workspace.h') 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 -#include "LinkedList.h" +#include +#include class BScreen; class Clientmenu; @@ -34,13 +35,17 @@ class OpenboxWindow; class Size; class Rect; +typedef std::vector winVect; +typedef std::list winList; + class Workspace { private: BScreen &screen; OpenboxWindow *lastfocus; Clientmenu *clientmenu; - LinkedList *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); -- cgit v1.2.3