all repos — fluxbox @ f9c5225e3312c3de76c5c54a9328747ea8bc4d66

custom fork of the fluxbox windowmanager

Fixed tabcycling
fluxgen fluxgen
commit

f9c5225e3312c3de76c5c54a9328747ea8bc4d66

parent

c93fa789daed6f72682ed92ccd39b5e6e3d0c089

1 files changed, 10 insertions(+), 2 deletions(-)

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

@@ -871,16 +871,24 @@ if (tab->next()) {

screen->getCurrentWorkspace()->raiseWindow( tab->next()->getWindow()); tab->next()->getWindow()->setInputFocus(); - } + } else { + screen->getCurrentWorkspace()->raiseWindow( + tab->first()->getWindow()); + tab->first()->getWindow()->setInputFocus(); + } } break; case Keys::grabPrevTab: if (focused_window && focused_window->getTab()) { Tab *tab = focused_window->getTab(); - if (tab->prev()) { + if (tab->prev()) { screen->getCurrentWorkspace()->raiseWindow( tab->prev()->getWindow()); tab->prev()->getWindow()->setInputFocus(); + } else { + screen->getCurrentWorkspace()->raiseWindow( + tab->last()->getWindow()); + tab->last()->getWindow()->setInputFocus(); } } break;