aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authormathias <mathias>2007-10-14 17:11:38 (GMT)
committermathias <mathias>2007-10-14 17:11:38 (GMT)
commit79cd21ce0fe56f4b38a96ecccc969f740b801cc8 (patch)
tree4861b4596a22998739e18fa73c1b985d1ea41271 /src/CurrentWindowCmd.hh
parenta59428d67a95a9df16554962f0a6257d6378328a (diff)
downloadfluxbox-79cd21ce0fe56f4b38a96ecccc969f740b801cc8.zip
fluxbox-79cd21ce0fe56f4b38a96ecccc969f740b801cc8.tar.bz2
bugfix for SendToPrevWorkspace/TakeToPrevWorkspace, destination was calculated
wrong due to (wrong) implicit casting effects
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh
index 172f9c0..da929d5 100644
--- a/src/CurrentWindowCmd.hh
+++ b/src/CurrentWindowCmd.hh
@@ -77,20 +77,20 @@ private:
77 77
78class SendToNextWorkspaceCmd: public WindowHelperCmd { 78class SendToNextWorkspaceCmd: public WindowHelperCmd {
79public: 79public:
80 explicit SendToNextWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { } 80 explicit SendToNextWorkspaceCmd(int delta):m_delta(delta) { }
81protected: 81protected:
82 void real_execute(); 82 void real_execute();
83private: 83private:
84 const int m_workspace_num; 84 const int m_delta;
85}; 85};
86 86
87class SendToPrevWorkspaceCmd: public WindowHelperCmd { 87class SendToPrevWorkspaceCmd: public WindowHelperCmd {
88public: 88public:
89 explicit SendToPrevWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { } 89 explicit SendToPrevWorkspaceCmd(int delta):m_delta(delta) { }
90protected: 90protected:
91 void real_execute(); 91 void real_execute();
92private: 92private:
93 const int m_workspace_num; 93 const int m_delta;
94}; 94};
95 95
96class TakeToWorkspaceCmd : public WindowHelperCmd { 96class TakeToWorkspaceCmd : public WindowHelperCmd {
@@ -104,20 +104,20 @@ private:
104 104
105class TakeToNextWorkspaceCmd : public WindowHelperCmd { 105class TakeToNextWorkspaceCmd : public WindowHelperCmd {
106public: 106public:
107 explicit TakeToNextWorkspaceCmd(int workspace_num) : m_workspace_num(workspace_num) { } 107 explicit TakeToNextWorkspaceCmd(int delta) : m_delta(delta) { }
108protected: 108protected:
109 void real_execute(); 109 void real_execute();
110private: 110private:
111 const int m_workspace_num; 111 const int m_delta;
112}; 112};
113 113
114class TakeToPrevWorkspaceCmd : public WindowHelperCmd { 114class TakeToPrevWorkspaceCmd : public WindowHelperCmd {
115public: 115public:
116 explicit TakeToPrevWorkspaceCmd(int workspace_num) : m_workspace_num(workspace_num) { } 116 explicit TakeToPrevWorkspaceCmd(int delta) : m_delta(delta) { }
117protected: 117protected:
118 void real_execute(); 118 void real_execute();
119private: 119private:
120 const int m_workspace_num; 120 const int m_delta;
121}; 121};
122 122
123 123