aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc16
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
88ResizeHorizontalCmd::ResizeHorizontalCmd(int step_size):MoveHelper(step_size) { } 88ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
89void 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
93ResizeVerticalCmd::ResizeVerticalCmd(int step_size):MoveHelper(step_size) { } 91void ResizeCmd::real_execute() {
94void 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