diff options
author | fluxgen <fluxgen> | 2003-09-06 15:43:27 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-06 15:43:27 (GMT) |
commit | 39abccae4af9d290de33c7f7877f4f4af92c6db8 (patch) | |
tree | 4d313b4f1629ce3a668a24dccdcd28ae439b2af2 /src/CurrentWindowCmd.cc | |
parent | d75ac0afcc21375081000cbcb3bee763c90c8d08 (diff) | |
download | fluxbox_paul-39abccae4af9d290de33c7f7877f4f4af92c6db8.zip fluxbox_paul-39abccae4af9d290de33c7f7877f4f4af92c6db8.tar.bz2 |
resize command
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 6906926..894eaa3 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.4 2003/08/19 23:37:31 fluxgen Exp $ | 23 | // $Id: CurrentWindowCmd.cc,v 1.5 2003/09/06 15:43:27 fluxgen Exp $ |
24 | 24 | ||
25 | #include "CurrentWindowCmd.hh" | 25 | #include "CurrentWindowCmd.hh" |
26 | 26 | ||
@@ -85,13 +85,11 @@ void MoveUpCmd::real_execute() { | |||
85 | fbwindow().move(fbwindow().x(), fbwindow().y() - stepSize()); | 85 | fbwindow().move(fbwindow().x(), fbwindow().y() - stepSize()); |
86 | } | 86 | } |
87 | 87 | ||
88 | ResizeHorizontalCmd::ResizeHorizontalCmd(int step_size):MoveHelper(step_size) { } | 88 | ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) : |
89 | void ResizeHorizontalCmd::real_execute() { | 89 | m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } |
90 | fbwindow().resize(fbwindow().width() + stepSize() * fbwindow().winClient().width_inc, fbwindow().height()); | ||
91 | } | ||
92 | 90 | ||
93 | ResizeVerticalCmd::ResizeVerticalCmd(int step_size):MoveHelper(step_size) { } | 91 | void ResizeCmd::real_execute() { |
94 | void ResizeVerticalCmd::real_execute() { | 92 | fbwindow().resize( |
95 | fbwindow().resize(fbwindow().width(), fbwindow().height() + stepSize() * fbwindow().winClient().height_inc); | 93 | fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, |
94 | fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); | ||
96 | } | 95 | } |
97 | |||