diff options
author | markt <markt> | 2007-10-23 17:34:30 (GMT) |
---|---|---|
committer | markt <markt> | 2007-10-23 17:34:30 (GMT) |
commit | 1c05af4329e62b8bfaf3c0f032c52ace4eaa5975 (patch) | |
tree | af37aee8b1e6cde31050cd627fcbd56c55f9dc21 /src/Remember.hh | |
parent | c849d3c7ffc518d85a365664530f1faa102cf83f (diff) | |
download | fluxbox_pavel-1c05af4329e62b8bfaf3c0f032c52ace4eaa5975.zip fluxbox_pavel-1c05af4329e62b8bfaf3c0f032c52ace4eaa5975.tar.bz2 |
allow remembering minimized, maximized, and fullscreen state
Diffstat (limited to 'src/Remember.hh')
-rw-r--r-- | src/Remember.hh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Remember.hh b/src/Remember.hh index 7ecf8c2..f34c551 100644 --- a/src/Remember.hh +++ b/src/Remember.hh | |||
@@ -47,6 +47,7 @@ class WinClient; | |||
47 | class Application { | 47 | class Application { |
48 | public: | 48 | public: |
49 | Application(bool grouped, ClientPattern *pat = 0); | 49 | Application(bool grouped, ClientPattern *pat = 0); |
50 | void reset(); | ||
50 | inline void forgetWorkspace() { workspace_remember = false; } | 51 | inline void forgetWorkspace() { workspace_remember = false; } |
51 | inline void forgetHead() { head_remember = false; } | 52 | inline void forgetHead() { head_remember = false; } |
52 | inline void forgetDimensions() { dimensions_remember = false; } | 53 | inline void forgetDimensions() { dimensions_remember = false; } |
@@ -61,6 +62,9 @@ public: | |||
61 | inline void forgetLayer() { layer_remember = false; } | 62 | inline void forgetLayer() { layer_remember = false; } |
62 | inline void forgetSaveOnClose() { save_on_close_remember = false; } | 63 | inline void forgetSaveOnClose() { save_on_close_remember = false; } |
63 | inline void forgetAlpha() { alpha_remember = false; } | 64 | inline void forgetAlpha() { alpha_remember = false; } |
65 | inline void forgetMinimizedstate() { minimizedstate_remember = false; } | ||
66 | inline void forgetMaximizedstate() { maximizedstate_remember = false; } | ||
67 | inline void forgetFullscreenstate() { fullscreenstate_remember = false; } | ||
64 | 68 | ||
65 | inline void rememberWorkspace(int ws) | 69 | inline void rememberWorkspace(int ws) |
66 | { workspace = ws; workspace_remember = true; } | 70 | { workspace = ws; workspace_remember = true; } |
@@ -90,7 +94,12 @@ public: | |||
90 | { save_on_close = state; save_on_close_remember = true; } | 94 | { save_on_close = state; save_on_close_remember = true; } |
91 | inline void rememberAlpha(int focused_a, int unfocused_a) | 95 | inline void rememberAlpha(int focused_a, int unfocused_a) |
92 | { focused_alpha = focused_a; unfocused_alpha = unfocused_a; alpha_remember = true; } | 96 | { focused_alpha = focused_a; unfocused_alpha = unfocused_a; alpha_remember = true; } |
93 | 97 | inline void rememberMinimizedstate(bool state) | |
98 | { minimizedstate = state; minimizedstate_remember = true; } | ||
99 | inline void rememberMaximizedstate(int state) | ||
100 | { maximizedstate = state; maximizedstate_remember = true; } | ||
101 | inline void rememberFullscreenstate(bool state) | ||
102 | { fullscreenstate = state; fullscreenstate_remember = true; } | ||
94 | 103 | ||
95 | bool workspace_remember; | 104 | bool workspace_remember; |
96 | unsigned int workspace; | 105 | unsigned int workspace; |
@@ -139,6 +148,15 @@ public: | |||
139 | bool save_on_close_remember; | 148 | bool save_on_close_remember; |
140 | bool save_on_close; | 149 | bool save_on_close; |
141 | 150 | ||
151 | bool minimizedstate_remember; | ||
152 | bool minimizedstate; | ||
153 | |||
154 | bool maximizedstate_remember; | ||
155 | int maximizedstate; | ||
156 | |||
157 | bool fullscreenstate_remember; | ||
158 | bool fullscreenstate; | ||
159 | |||
142 | bool is_grouped; | 160 | bool is_grouped; |
143 | FbTk::RefCount<ClientPattern> group_pattern; | 161 | FbTk::RefCount<ClientPattern> group_pattern; |
144 | 162 | ||
@@ -171,6 +189,9 @@ public: | |||
171 | REM_WORKSPACE, | 189 | REM_WORKSPACE, |
172 | REM_HEAD, | 190 | REM_HEAD, |
173 | REM_ALPHA, | 191 | REM_ALPHA, |
192 | REM_MINIMIZEDSTATE, | ||
193 | REM_MAXIMIZEDSTATE, | ||
194 | REM_FULLSCREENSTATE, | ||
174 | REM_LASTATTRIB // not actually used | 195 | REM_LASTATTRIB // not actually used |
175 | }; | 196 | }; |
176 | 197 | ||