diff options
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index da929d5..53dc7b8 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -26,8 +26,7 @@ | |||
26 | #define CURRENTWINDOWCMD_HH | 26 | #define CURRENTWINDOWCMD_HH |
27 | 27 | ||
28 | #include "Command.hh" | 28 | #include "Command.hh" |
29 | 29 | #include "Window.hh" | |
30 | class FluxboxWindow; | ||
31 | 30 | ||
32 | /// helper class for window commands | 31 | /// helper class for window commands |
33 | /// calls real_execute if there's a focused window or a window in button press/release window | 32 | /// calls real_execute if there's a focused window or a window in button press/release window |
@@ -131,6 +130,24 @@ private: | |||
131 | const int m_tab_num; | 130 | const int m_tab_num; |
132 | }; | 131 | }; |
133 | 132 | ||
133 | // begin moving with mouse | ||
134 | class StartMovingCmd: public WindowHelperCmd { | ||
135 | public: | ||
136 | StartMovingCmd() { } | ||
137 | protected: | ||
138 | void real_execute(); | ||
139 | }; | ||
140 | |||
141 | // begin resizing with mouse | ||
142 | class StartResizingCmd: public WindowHelperCmd { | ||
143 | public: | ||
144 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } | ||
145 | protected: | ||
146 | void real_execute(); | ||
147 | private: | ||
148 | const FluxboxWindow::ResizeModel m_mode; | ||
149 | }; | ||
150 | |||
134 | // move cmd, relative position | 151 | // move cmd, relative position |
135 | class MoveCmd: public WindowHelperCmd { | 152 | class MoveCmd: public WindowHelperCmd { |
136 | public: | 153 | public: |