diff options
author | fluxgen <fluxgen> | 2003-12-11 15:23:14 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-11 15:23:14 (GMT) |
commit | 96c144540887655c3aa0c391a813fabc38855664 (patch) | |
tree | 7c569eb4ad7b7b9e50fae82e82c32692c26693ac /src/Remember.hh | |
parent | 19fe500ba2f98b5e7e12628c7c03c8aeff7d0181 (diff) | |
download | fluxbox-96c144540887655c3aa0c391a813fabc38855664.zip fluxbox-96c144540887655c3aa0c391a813fabc38855664.tar.bz2 |
remember position patch from Mathias Gumz
Diffstat (limited to 'src/Remember.hh')
-rw-r--r-- | src/Remember.hh | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/Remember.hh b/src/Remember.hh index 1671a41..a93e3f5 100644 --- a/src/Remember.hh +++ b/src/Remember.hh | |||
@@ -21,7 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // $Id: Remember.hh,v 1.12 2003/07/28 15:06:33 rathnor Exp $ | 24 | // $Id: Remember.hh,v 1.13 2003/12/11 15:23:14 fluxgen Exp $ |
25 | 25 | ||
26 | /* Based on the original "Remember patch" by Xavier Brouckaert */ | 26 | /* Based on the original "Remember patch" by Xavier Brouckaert */ |
27 | 27 | ||
@@ -59,8 +59,8 @@ public: | |||
59 | { workspace = ws; workspace_remember = true; } | 59 | { workspace = ws; workspace_remember = true; } |
60 | inline void rememberDimensions(int width, int height) | 60 | inline void rememberDimensions(int width, int height) |
61 | { w = width; h = height; dimensions_remember = true; } | 61 | { w = width; h = height; dimensions_remember = true; } |
62 | inline void rememberPosition(int posx, int posy) | 62 | inline void rememberPosition(int posx, int posy, unsigned char rfc= 0 ) |
63 | { x = posx; y = posy; position_remember = true; } | 63 | { x = posx; y = posy; refc = rfc; position_remember = true; } |
64 | inline void rememberShadedstate(bool state) | 64 | inline void rememberShadedstate(bool state) |
65 | { shadedstate = state; shadedstate_remember = true; } | 65 | { shadedstate = state; shadedstate_remember = true; } |
66 | inline void rememberTabstate(bool state) | 66 | inline void rememberTabstate(bool state) |
@@ -85,6 +85,10 @@ public: | |||
85 | 85 | ||
86 | bool position_remember; | 86 | bool position_remember; |
87 | int x,y; | 87 | int x,y; |
88 | unsigned char refc; // referenceCorner-> 0 - upperleft | ||
89 | // 1 - upperight | ||
90 | // 2 - lowerleft | ||
91 | // 3 - lowerright | ||
88 | 92 | ||
89 | bool shadedstate_remember; | 93 | bool shadedstate_remember; |
90 | bool shadedstate; | 94 | bool shadedstate; |
@@ -138,6 +142,17 @@ public: | |||
138 | REM_LASTATTRIB // not actually used | 142 | REM_LASTATTRIB // not actually used |
139 | }; | 143 | }; |
140 | 144 | ||
145 | enum { | ||
146 | POS_UPPERLEFT= 0, | ||
147 | POS_UPPERRIGHT, | ||
148 | POS_LOWERLEFT, | ||
149 | POS_LOWERRIGHT, | ||
150 | POS_CENTER, | ||
151 | POS_WINCENTER | ||
152 | }; | ||
153 | |||
154 | |||
155 | |||
141 | // a "pattern" to the relevant app | 156 | // a "pattern" to the relevant app |
142 | // each app exists ONLY for that pattern. | 157 | // each app exists ONLY for that pattern. |
143 | // And we need to keep a list of pairs as we want to keep the | 158 | // And we need to keep a list of pairs as we want to keep the |