all repos — fluxbox @ 18931280a7d4e20cf4a4ec86b2eef18cecc815c4

custom fork of the fluxbox windowmanager

changed place on public and private, added getWindowList
fluxgen fluxgen
commit

18931280a7d4e20cf4a4ec86b2eef18cecc815c4

parent

ef969ea966fc15138f927392262558e99d359bbd

1 files changed, 25 insertions(+), 20 deletions(-)

jump to
M src/Workspace.hhsrc/Workspace.hh

@@ -34,26 +34,9 @@ class FluxboxWindow;

class Workspace { -private: - BScreen *screen; - FluxboxWindow *lastfocus; - Clientmenu *clientmenu; - - typedef std::list<FluxboxWindow *> WindowStack; +public: typedef std::vector<FluxboxWindow *> Windows; - - WindowStack stackingList; - Windows windowList; - - std::string name; - int id, cascade_x, cascade_y; - - -protected: - void placeWindow(FluxboxWindow *); - - -public: + Workspace(BScreen *, int = 0); ~Workspace(void);

@@ -70,6 +53,7 @@

inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } FluxboxWindow *getWindow(int); + inline Windows &getWindowList() { return windowList; } bool isCurrent(void); bool isLastWindow(FluxboxWindow *);

@@ -77,7 +61,7 @@

const int addWindow(FluxboxWindow *, Bool = False); const int removeWindow(FluxboxWindow *); const int getCount(void); - + void showAll(void); void hideAll(void); void removeAll(void);

@@ -88,6 +72,27 @@ void update();

void setCurrent(void); void setName(char *); void shutdown(void); + +private: + BScreen *screen; + FluxboxWindow *lastfocus; + Clientmenu *clientmenu; + + typedef std::list<FluxboxWindow *> WindowStack; + + + WindowStack stackingList; + Windows windowList; + + std::string name; + int id, cascade_x, cascade_y; + + +protected: + void placeWindow(FluxboxWindow *); + + + };