aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-10-26 12:36:55 (GMT)
committerfluxgen <fluxgen>2003-10-26 12:36:55 (GMT)
commit35b2305b62e106e5b0ca38200a50064287da99aa (patch)
treedbf790571dd4c135aebd74ad3ecb5d20f96964f8 /src/CurrentWindowCmd.cc
parentd8fda174958b8d5bd508b550601919b040864327 (diff)
downloadfluxbox-35b2305b62e106e5b0ca38200a50064287da99aa.zip
fluxbox-35b2305b62e106e5b0ca38200a50064287da99aa.tar.bz2
minor fix
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 37e4782..4320f73 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.7 2003/10/25 22:11:22 fluxgen Exp $ 23// $Id: CurrentWindowCmd.cc,v 1.8 2003/10/26 12:36:55 fluxgen Exp $
24 24
25#include "CurrentWindowCmd.hh" 25#include "CurrentWindowCmd.hh"
26 26
@@ -69,7 +69,7 @@ MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) :
69void MoveCmd::real_execute() { 69void MoveCmd::real_execute() {
70 fbwindow().move( 70 fbwindow().move(
71 fbwindow().x() + m_step_size_x, 71 fbwindow().x() + m_step_size_x,
72 fbwindow().y() + m_step_size_y ); 72 fbwindow().y() + m_step_size_y);
73} 73}
74 74
75ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) : 75ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
@@ -77,24 +77,22 @@ ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
77 77
78void ResizeCmd::real_execute() { 78void ResizeCmd::real_execute() {
79 fbwindow().resize( 79 fbwindow().resize(
80 fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc, 80 fbwindow().width() +
81 fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc ); 81 m_step_size_x * fbwindow().winClient().width_inc,
82 fbwindow().height() +
83 m_step_size_y * fbwindow().winClient().height_inc);
82} 84}
83 85
84MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) : 86MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y) :
85 m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } 87 m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
86 88
87void MoveToCmd::real_execute() { 89void MoveToCmd::real_execute() {
88 fbwindow().move( 90 fbwindow().move(m_step_size_x, m_step_size_y);
89 m_step_size_x,
90 m_step_size_y );
91} 91}
92 92
93ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) : 93ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) :
94 m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } 94 m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
95 95
96void ResizeToCmd::real_execute() { 96void ResizeToCmd::real_execute() {
97 fbwindow().resize( 97 fbwindow().resize(m_step_size_x, m_step_size_y);
98 m_step_size_x * fbwindow().winClient().width_inc,
99 m_step_size_y * fbwindow().winClient().height_inc );
100} 98}