aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-02-05 17:20:01 (GMT)
committermarkt <markt>2007-02-05 17:20:01 (GMT)
commite4488da12009aeb2d6d1624bd42a877c95db468e (patch)
treed8bd3d13b84d50b0c9d1c53f1b8df12bc1ba37c8 /src/Remember.hh
parentcf6e471fbf027a1ba08693d6562ae5d63aaa9e24 (diff)
downloadfluxbox-e4488da12009aeb2d6d1624bd42a877c95db468e.zip
fluxbox-e4488da12009aeb2d6d1624bd42a877c95db468e.tar.bz2
some fixes for grouping with the apps file
Diffstat (limited to 'src/Remember.hh')
-rw-r--r--src/Remember.hh17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Remember.hh b/src/Remember.hh
index d78e226..581e525 100644
--- a/src/Remember.hh
+++ b/src/Remember.hh
@@ -44,7 +44,7 @@ class ClientPattern;
44 44
45class Application { 45class Application {
46public: 46public:
47 Application(bool grouped); 47 Application(int grouped);
48 inline void forgetWorkspace() { workspace_remember = false; } 48 inline void forgetWorkspace() { workspace_remember = false; }
49 inline void forgetHead() { head_remember = false; } 49 inline void forgetHead() { head_remember = false; }
50 inline void forgetDimensions() { dimensions_remember = false; } 50 inline void forgetDimensions() { dimensions_remember = false; }
@@ -137,8 +137,14 @@ public:
137 bool save_on_close_remember; 137 bool save_on_close_remember;
138 bool save_on_close; 138 bool save_on_close;
139 139
140 bool is_grouped; 140 enum {
141 FluxboxWindow *group; 141 IS_GROUPED = 0x01,
142 MATCH_WORKSPACE = 0x02
143 // MATCH_HEAD, STUCK, ICONIFIED, etc.?
144 // this will probably evolve into a ClientPattern as soon as they
145 // match things like currentworkspace
146 };
147 int is_grouped;
142 148
143}; 149};
144 150
@@ -201,6 +207,7 @@ public:
201 207
202 Application* find(WinClient &winclient); 208 Application* find(WinClient &winclient);
203 Application* add(WinClient &winclient); 209 Application* add(WinClient &winclient);
210 FluxboxWindow* findGroup(Application *, BScreen &screen);
204 211
205 void reconfigure(); // was load 212 void reconfigure(); // was load
206 void save(); 213 void save();
@@ -214,7 +221,6 @@ public:
214 // Functions we actually use 221 // Functions we actually use
215 void setupFrame(FluxboxWindow &win); 222 void setupFrame(FluxboxWindow &win);
216 void setupClient(WinClient &winclient); 223 void setupClient(WinClient &winclient);
217 void updateFrameClose(FluxboxWindow &win);
218 void updateClientClose(WinClient &winclient); 224 void updateClientClose(WinClient &winclient);
219 225
220 void initForScreen(BScreen &screen); 226 void initForScreen(BScreen &screen);
@@ -233,6 +239,7 @@ public:
233 void updateState(FluxboxWindow &win) {} 239 void updateState(FluxboxWindow &win) {}
234 void updateHints(FluxboxWindow &win) {} 240 void updateHints(FluxboxWindow &win) {}
235 void updateLayer(FluxboxWindow &win) {} 241 void updateLayer(FluxboxWindow &win) {}
242 void updateFrameClose(FluxboxWindow &win) {}
236 243
237 bool checkClientMessage(const XClientMessageEvent &ce, 244 bool checkClientMessage(const XClientMessageEvent &ce,
238 BScreen * screen, WinClient * const winclient) { return false; } 245 BScreen * screen, WinClient * const winclient) { return false; }
@@ -247,7 +254,7 @@ private:
247 // optionally can give a line to read before the first (lookahead line) 254 // optionally can give a line to read before the first (lookahead line)
248 int parseApp(std::ifstream &file, Application &app, std::string *first_line = 0); 255 int parseApp(std::ifstream &file, Application &app, std::string *first_line = 0);
249 256
250 Application *findMatchingPatterns(ClientPattern *pat, Patterns *patlist, bool is_group); 257 Application *findMatchingPatterns(ClientPattern *pat, Patterns *patlist, int is_group);
251 258
252 std::auto_ptr<Patterns> m_pats; 259 std::auto_ptr<Patterns> m_pats;
253 Clients m_clients; 260 Clients m_clients;