Fixed tabcycling

This commit is contained in:
fluxgen 2001-12-17 00:37:42 +00:00
parent c93fa789da
commit f9c5225e33

View file

@ -871,16 +871,24 @@ void Fluxbox::process_event(XEvent *e) {
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;