aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh
index 4c3f91b..2d33847 100644
--- a/src/CurrentWindowCmd.hh
+++ b/src/CurrentWindowCmd.hh
@@ -206,25 +206,21 @@ private:
206 206
207class MoveToCmd: public WindowHelperCmd { 207class MoveToCmd: public WindowHelperCmd {
208public: 208public:
209 enum { 209 explicit MoveToCmd(int pos_x, int pos_y, bool ignore_x, bool ignore_y,
210 LEFT = 1 << 0, 210 FluxboxWindow::ReferenceCorner refc):
211 RIGHT = 1 << 1, 211 m_pos_x(pos_x), m_pos_y(pos_y),
212 UPPER = 1 << 2, 212 m_ignore_x(ignore_x), m_ignore_y(ignore_y),
213 LOWER = 1 << 3, 213 m_corner(refc) { }
214 214
215 IGNORE_X = 1 << 8,
216 IGNORE_Y = 1 << 9
217 };
218 explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc);
219 static FbTk::Command<void> *parse(const std::string &command, 215 static FbTk::Command<void> *parse(const std::string &command,
220 const std::string &args, bool trusted); 216 const std::string &args, bool trusted);
221protected: 217protected:
222 void real_execute(); 218 void real_execute();
223 219
224private: 220private:
225 const int m_step_size_x; 221 int m_pos_x, m_pos_y;
226 const int m_step_size_y; 222 bool m_ignore_x, m_ignore_y;
227 const unsigned int m_refc; 223 FluxboxWindow::ReferenceCorner m_corner;
228}; 224};
229 225
230// resize cmd 226// resize cmd