all repos — fluxbox @ 81c650c63e3fdbe535cd4a292a4afb07118e1241

custom fork of the fluxbox windowmanager

add support for negative arguments to :Tab
markt markt
commit

81c650c63e3fdbe535cd4a292a4afb07118e1241

parent

fc400002115a0f08b9dedd35effc53080850b0e2

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,9 @@

(Format: Year/Month/Day) Changes for 1.0rc3: *06/08/03: + * Added support for negative arguments to the `Tab' key command to count + backwards from the last tab in the group (Mark) + CurrentWindowCmd.cc * Updated documentation (Mark) fluxbox.txt fluxstyle.txt *06/08/02:
M src/CurrentWindowCmd.ccsrc/CurrentWindowCmd.cc

@@ -85,12 +85,12 @@ fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow());

} void GoToTabCmd::real_execute() { - if (fbwindow().numClients() <= 1 || m_tab_num > fbwindow().numClients()) + int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1); + if (num < 1 || num > fbwindow().numClients()) return; FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); - int num = m_tab_num; while (--num > 0) ++it; fbwindow().setCurrentClient(**it, true);