summaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index d36987f..015065c 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -161,9 +161,14 @@ IconButton::IconButton(const IconbarTool& tool, const FbTk::FbWindow &parent,
161 RefCmd menu_cmd(new ::ShowMenu(m_win)); 161 RefCmd menu_cmd(new ::ShowMenu(m_win));
162 setOnClick(focus_cmd, 1); 162 setOnClick(focus_cmd, 1);
163 setOnClick(menu_cmd, 3); 163 setOnClick(menu_cmd, 3);
164 setOnClick(next_workspace, 4); 164 if(win.screen().isReverseWheeling()) {
165 setOnClick(prev_workspace, 5); 165 setOnClick(next_workspace, 5);
166 166 setOnClick(prev_workspace, 4);
167 } else {
168 setOnClick(next_workspace, 4);
169 setOnClick(prev_workspace, 5);
170 }
171
167 m_win.hintSig().attach(this); 172 m_win.hintSig().attach(this);
168 173
169 FbTk::EventManager::instance()->add(*this, m_icon_window); 174 FbTk::EventManager::instance()->add(*this, m_icon_window);