aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.hh
diff options
context:
space:
mode:
authormathias <mathias>2004-12-21 16:09:36 (GMT)
committermathias <mathias>2004-12-21 16:09:36 (GMT)
commit6dffafc39e4b11542705e2d4cd8477545967f5fc (patch)
tree0585d524794e3df62a34edef44aaf01a2830ca1f /src/Remember.hh
parentf3dfb80c405182573804e764357d1e615dd20792 (diff)
downloadfluxbox-6dffafc39e4b11542705e2d4cd8477545967f5fc.zip
fluxbox-6dffafc39e4b11542705e2d4cd8477545967f5fc.tar.bz2
* added new command:
sethead <int> which sets the current window to head<int> * added remembering of the head to apps-file: [Head] {<int>}
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 0d1cff9..4822bc5 100644
--- a/src/Remember.hh
+++ b/src/Remember.hh
@@ -45,6 +45,7 @@ class Application {
45public: 45public:
46 Application(bool grouped); 46 Application(bool grouped);
47 inline void forgetWorkspace() { workspace_remember = false; } 47 inline void forgetWorkspace() { workspace_remember = false; }
48 inline void forgetHead() { head_remember = false; }
48 inline void forgetDimensions() { dimensions_remember = false; } 49 inline void forgetDimensions() { dimensions_remember = false; }
49 inline void forgetPosition() { position_remember = false; } 50 inline void forgetPosition() { position_remember = false; }
50 inline void forgetShadedstate() { shadedstate_remember = false; } 51 inline void forgetShadedstate() { shadedstate_remember = false; }
@@ -56,10 +57,12 @@ public:
56 inline void forgetJumpworkspace() { jumpworkspace_remember = false; } 57 inline void forgetJumpworkspace() { jumpworkspace_remember = false; }
57 inline void forgetLayer() { layer_remember = false; } 58 inline void forgetLayer() { layer_remember = false; }
58 inline void forgetSaveOnClose() { save_on_close_remember = false; } 59 inline void forgetSaveOnClose() { save_on_close_remember = false; }
59 60
60 inline void rememberWorkspace(int ws) 61 inline void rememberWorkspace(int ws)
61 { workspace = ws; workspace_remember = true; } 62 { workspace = ws; workspace_remember = true; }
62 inline void rememberDimensions(int width, int height) 63 inline void rememberHead(int h)
64 { head = h; head_remember = true; }
65 inline void rememberDimensions(int width, int height)
63 { w = width; h = height; dimensions_remember = true; } 66 { w = width; h = height; dimensions_remember = true; }
64 inline void rememberFocusHiddenstate(bool state) 67 inline void rememberFocusHiddenstate(bool state)
65 { focushiddenstate= state; focushiddenstate_remember= true; } 68 { focushiddenstate= state; focushiddenstate_remember= true; }
@@ -86,6 +89,9 @@ public:
86 bool workspace_remember; 89 bool workspace_remember;
87 unsigned int workspace; 90 unsigned int workspace;
88 91
92 bool head_remember;
93 int head;
94
89 bool dimensions_remember; 95 bool dimensions_remember;
90 int w,h; // width, height 96 int w,h; // width, height
91 97
@@ -153,6 +159,7 @@ public:
153 REM_STUCKSTATE, 159 REM_STUCKSTATE,
154 //REM_TABSTATE, ... external tabs disabled atm 160 //REM_TABSTATE, ... external tabs disabled atm
155 REM_WORKSPACE, 161 REM_WORKSPACE,
162 REM_HEAD,
156 REM_LASTATTRIB // not actually used 163 REM_LASTATTRIB // not actually used
157 }; 164 };
158 165
@@ -176,7 +183,7 @@ public:
176 // We keep track of which app is assigned to a winclient 183 // We keep track of which app is assigned to a winclient
177 // particularly useful to update counters etc on windowclose 184 // particularly useful to update counters etc on windowclose
178 typedef std::map<WinClient *, Application *> Clients; 185 typedef std::map<WinClient *, Application *> Clients;
179 186
180 // we have to remember any startups we did so that they are saved again 187 // we have to remember any startups we did so that they are saved again
181 typedef std::list<std::string> Startups; 188 typedef std::list<std::string> Startups;
182 189
@@ -194,7 +201,7 @@ public:
194 void forgetAttrib(WinClient &win, Attribute attrib); 201 void forgetAttrib(WinClient &win, Attribute attrib);
195 202
196 // Functions relating to AtomHandler 203 // Functions relating to AtomHandler
197 204
198 // Functions we actually use 205 // Functions we actually use
199 void setupFrame(FluxboxWindow &win); 206 void setupFrame(FluxboxWindow &win);
200 void setupClient(WinClient &winclient); 207 void setupClient(WinClient &winclient);