summaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index dc640ac..e461bd5 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -50,7 +50,7 @@ public:
50 /** 50 /**
51 Set workspace name 51 Set workspace name
52 */ 52 */
53 void setName(const char *name); 53 void setName(const std::string &name);
54 void showAll(); 54 void showAll();
55 void hideAll(); 55 void hideAll();
56 void removeAll(); 56 void removeAll();
@@ -86,21 +86,29 @@ public:
86 */ 86 */
87 FluxboxWindow *getWindow(unsigned int id); 87 FluxboxWindow *getWindow(unsigned int id);
88 const FluxboxWindow *getWindow(unsigned int id) const; 88 const FluxboxWindow *getWindow(unsigned int id) const;
89 inline const Windows &getWindowList() const { return windowList; } 89 const Windows &getWindowList() const { return windowList; }
90 Windows &getWindowList() { return windowList; }
91
90 bool isCurrent() const; 92 bool isCurrent() const;
91 bool isLastWindow(FluxboxWindow *window) const; 93 bool isLastWindow(FluxboxWindow *window) const;
92 int getCount() const; 94 int getCount() const;
93 95 void checkGrouping(FluxboxWindow &win);
96 static bool loadGroups(const std::string &filename);
94protected: 97protected:
95 void placeWindow(FluxboxWindow *win); 98 void placeWindow(FluxboxWindow *win);
96 99
97private: 100private:
101
102
98 BScreen *screen; 103 BScreen *screen;
99 FluxboxWindow *lastfocus; 104 FluxboxWindow *lastfocus;
100 Clientmenu m_clientmenu; 105 Clientmenu m_clientmenu;
101 106
102 typedef std::list<FluxboxWindow *> WindowStack; 107 typedef std::list<FluxboxWindow *> WindowStack;
103 108 typedef std::vector<std::string> Group;
109 typedef std::vector<Group> GroupList;
110
111 static GroupList m_groups; ///< handle auto groupings
104 112
105 WindowStack stackingList; 113 WindowStack stackingList;
106 Windows windowList; 114 Windows windowList;