all repos — fluxbox @ b0dc83601b5e5c2bdff4c00ab2a8d66651a7c131

custom fork of the fluxbox windowmanager

change workspace on click
fluxgen fluxgen
commit

b0dc83601b5e5c2bdff4c00ab2a8d66651a7c131

parent

b54f07dbf7d70d9b8213b199e246250a24f11a78

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M src/IconButton.ccsrc/IconButton.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: IconButton.cc,v 1.17 2004/01/21 14:13:32 fluxgen Exp $ +// $Id: IconButton.cc,v 1.18 2004/02/18 10:16:23 fluxgen Exp $ #include "IconButton.hh"

@@ -69,10 +69,11 @@ class FocusCommand: public FbTk::Command {

public: explicit FocusCommand(FluxboxWindow &win):m_win(win) { } void execute() { - if(m_win.isIconic() || !m_win.isFocused()) - m_win.raiseAndFocus(); - else - m_win.iconify(); + if(m_win.isIconic() || !m_win.isFocused()) { + m_win.screen().changeWorkspaceID(m_win.workspaceNumber()); + m_win.raiseAndFocus(); + } else + m_win.iconify(); } private: FluxboxWindow &m_win;