aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/CurrentWindowCmd.cc4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 372f307..d9fb470 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc3: 2Changes for 1.0rc3:
3*06/08/03: 3*06/08/03:
4 * Added support for negative arguments to the `Tab' key command to count
5 backwards from the last tab in the group (Mark)
6 CurrentWindowCmd.cc
4 * Updated documentation (Mark) 7 * Updated documentation (Mark)
5 fluxbox.txt fluxstyle.txt 8 fluxbox.txt fluxstyle.txt
6*06/08/02: 9*06/08/02:
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index dc27056..e4de9a4 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -85,12 +85,12 @@ void TakeToPrevWorkspaceCmd::real_execute() {
85} 85}
86 86
87void GoToTabCmd::real_execute() { 87void GoToTabCmd::real_execute() {
88 if (fbwindow().numClients() <= 1 || m_tab_num > fbwindow().numClients()) 88 int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1);
89 if (num < 1 || num > fbwindow().numClients())
89 return; 90 return;
90 91
91 FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); 92 FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin();
92 93
93 int num = m_tab_num;
94 while (--num > 0) ++it; 94 while (--num > 0) ++it;
95 95
96 fbwindow().setCurrentClient(**it, true); 96 fbwindow().setCurrentClient(**it, true);