summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;