diff options
author | mathias <mathias> | 2005-06-15 15:17:48 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-06-15 15:17:48 (GMT) |
commit | d69e300376db05642730792f34e38712f52efbc2 (patch) | |
tree | 97afcfc41bc49aaa05bbd0e7feb4b826f96c074f /src/CurrentWindowCmd.hh | |
parent | 93b295a1587f91366d16a0d8c7514a4cd841cd38 (diff) | |
download | fluxbox_pavel-d69e300376db05642730792f34e38712f52efbc2.zip fluxbox_pavel-d69e300376db05642730792f34e38712f52efbc2.tar.bz2 |
Enhanced MoveTo, fixes #1074568
MoveTo <int|*> <int|*> <Reference Corner>
- * means "use current value"
- Reference Corner is one of:
- UpperLeft, Upper, UpperRight
- Left, Right
- LowerLeft, Lower, Right
examples:
MoveTo 0 * Left -> snap to left workspace edge
MoveTo * 0 Lower -> snap to lower workspace edge
MoveTo 0 0 UpperRight -> snap to upper right workspace corner
TODO: perhaps add some "aliases" to make it more userfriendly
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 0ef7eca..34fba57 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -161,26 +161,34 @@ private: | |||
161 | 161 | ||
162 | class MoveToCmd: public WindowHelperCmd { | 162 | class MoveToCmd: public WindowHelperCmd { |
163 | public: | 163 | public: |
164 | explicit MoveToCmd(const int step_size_x, const int step_size_y); | 164 | enum { |
165 | LEFT = 1 << 0, | ||
166 | RIGHT = 1 << 1, | ||
167 | UPPER = 1 << 2, | ||
168 | LOWER = 1 << 3, | ||
169 | |||
170 | IGNORE_X = 1 << 8, | ||
171 | IGNORE_Y = 1 << 9 | ||
172 | }; | ||
173 | explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc); | ||
165 | protected: | 174 | protected: |
166 | void real_execute(); | 175 | void real_execute(); |
167 | 176 | ||
168 | private: | 177 | private: |
169 | const int m_step_size_x; | 178 | const int m_step_size_x; |
170 | const int m_step_size_y; | 179 | const int m_step_size_y; |
180 | const unsigned int m_refc; | ||
171 | }; | 181 | }; |
172 | 182 | ||
173 | // resize cmd | 183 | // resize cmd |
174 | class ResizeToCmd: public WindowHelperCmd{ | 184 | class ResizeToCmd: public WindowHelperCmd{ |
175 | public: | 185 | public: |
176 | explicit ResizeToCmd(int step_size_x, int step_size_y); | 186 | explicit ResizeToCmd(int step_size_x, int step_size_y); |
177 | protected: | 187 | protected: |
178 | void real_execute(); | 188 | void real_execute(); |
179 | |||
180 | private: | 189 | private: |
181 | 190 | const int m_step_size_x; | |
182 | const int m_step_size_x; | 191 | const int m_step_size_y; |
183 | const int m_step_size_y; | ||
184 | }; | 192 | }; |
185 | 193 | ||
186 | class FullscreenCmd: public WindowHelperCmd{ | 194 | class FullscreenCmd: public WindowHelperCmd{ |