diff options
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index 0ed516d..459b4be 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -76,10 +76,6 @@ public: | |||
76 | void execute() { | 76 | void execute() { |
77 | if(m_win.isIconic() || !m_win.isFocused()) { | 77 | if(m_win.isIconic() || !m_win.isFocused()) { |
78 | switch(m_tool.deiconifyMode()) { | 78 | switch(m_tool.deiconifyMode()) { |
79 | case IconbarTool::FOLLOW: | ||
80 | m_win.screen().changeWorkspaceID(m_win.workspaceNumber()); | ||
81 | m_win.raiseAndFocus(); | ||
82 | break; | ||
83 | case IconbarTool::SEMIFOLLOW: | 79 | case IconbarTool::SEMIFOLLOW: |
84 | if (m_win.isIconic()) { | 80 | if (m_win.isIconic()) { |
85 | m_win.screen().sendToWorkspace(m_win.screen().currentWorkspaceID(), &m_win); | 81 | m_win.screen().sendToWorkspace(m_win.screen().currentWorkspaceID(), &m_win); |
@@ -89,9 +85,13 @@ public: | |||
89 | } | 85 | } |
90 | break; | 86 | break; |
91 | case IconbarTool::CURRENT: | 87 | case IconbarTool::CURRENT: |
92 | default: | ||
93 | m_win.screen().sendToWorkspace(m_win.screen().currentWorkspaceID(), &m_win); | 88 | m_win.screen().sendToWorkspace(m_win.screen().currentWorkspaceID(), &m_win); |
94 | break; | 89 | break; |
90 | case IconbarTool::FOLLOW: | ||
91 | default: | ||
92 | m_win.screen().changeWorkspaceID(m_win.workspaceNumber()); | ||
93 | m_win.raiseAndFocus(); | ||
94 | break; | ||
95 | }; | 95 | }; |
96 | 96 | ||
97 | } else | 97 | } else |