aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 894eaa3..4f49362 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: CurrentWindowCmd.cc,v 1.5 2003/09/06 15:43:27 fluxgen Exp $ 23// $Id: CurrentWindowCmd.cc,v 1.6 2003/09/10 14:07:48 fluxgen Exp $
24 24
25#include "CurrentWindowCmd.hh" 25#include "CurrentWindowCmd.hh"
26 26
@@ -63,26 +63,13 @@ FluxboxWindow &WindowHelperCmd::fbwindow() {
63 return *Fluxbox::instance()->getFocusedWindow()->fbwindow(); 63 return *Fluxbox::instance()->getFocusedWindow()->fbwindow();
64} 64}
65 65
66MoveLeftCmd::MoveLeftCmd(int step_size):MoveHelper(step_size) { } 66MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) :
67void MoveLeftCmd::real_execute() { 67 m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
68 fbwindow().move(fbwindow().x() - stepSize(),
69 fbwindow().y());
70}
71
72MoveRightCmd::MoveRightCmd(int step_size):MoveHelper(step_size) { }
73void MoveRightCmd::real_execute() {
74 fbwindow().move(fbwindow().x() + stepSize(),
75 fbwindow().y());
76}
77
78MoveDownCmd::MoveDownCmd(int step_size):MoveHelper(step_size) { }
79void MoveDownCmd::real_execute() {
80 fbwindow().move(fbwindow().x(), fbwindow().y() + stepSize());
81}
82 68
83MoveUpCmd::MoveUpCmd(int step_size):MoveHelper(step_size) { } 69void MoveCmd::real_execute() {
84void MoveUpCmd::real_execute() { 70 fbwindow().move(
85 fbwindow().move(fbwindow().x(), fbwindow().y() - stepSize()); 71 fbwindow().x() + m_step_size_x,
72 fbwindow().y() + m_step_size_y );
86} 73}
87 74
88ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) : 75ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :