aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-02-18 10:16:23 (GMT)
committerfluxgen <fluxgen>2004-02-18 10:16:23 (GMT)
commitb0dc83601b5e5c2bdff4c00ab2a8d66651a7c131 (patch)
tree875798d87c494c22f6ec83f6c57812054400a4d1
parentb54f07dbf7d70d9b8213b199e246250a24f11a78 (diff)
downloadfluxbox-b0dc83601b5e5c2bdff4c00ab2a8d66651a7c131.zip
fluxbox-b0dc83601b5e5c2bdff4c00ab2a8d66651a7c131.tar.bz2
change workspace on click
-rw-r--r--src/IconButton.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index a994b7d..b9b41b2 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.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: IconButton.cc,v 1.17 2004/01/21 14:13:32 fluxgen Exp $ 23// $Id: IconButton.cc,v 1.18 2004/02/18 10:16:23 fluxgen Exp $
24 24
25#include "IconButton.hh" 25#include "IconButton.hh"
26 26
@@ -69,10 +69,11 @@ class FocusCommand: public FbTk::Command {
69public: 69public:
70 explicit FocusCommand(FluxboxWindow &win):m_win(win) { } 70 explicit FocusCommand(FluxboxWindow &win):m_win(win) { }
71 void execute() { 71 void execute() {
72 if(m_win.isIconic() || !m_win.isFocused()) 72 if(m_win.isIconic() || !m_win.isFocused()) {
73 m_win.raiseAndFocus(); 73 m_win.screen().changeWorkspaceID(m_win.workspaceNumber());
74 else 74 m_win.raiseAndFocus();
75 m_win.iconify(); 75 } else
76 m_win.iconify();
76 } 77 }
77private: 78private:
78 FluxboxWindow &m_win; 79 FluxboxWindow &m_win;