Fixed tabcycling
fluxgen fluxgen
1 files changed,
10 insertions(+),
2 deletions(-)
jump to
M
src/fluxbox.cc
→
src/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;