diff options
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index fcc141b..b6c3c0e 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -85,9 +85,10 @@ void TakeToPrevWorkspaceCmd::real_execute() { | |||
85 | } | 85 | } |
86 | 86 | ||
87 | void GoToTabCmd::real_execute() { | 87 | void GoToTabCmd::real_execute() { |
88 | int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1); | 88 | int num = m_tab_num; |
89 | if (num < 1 || num > fbwindow().numClients()) | 89 | if (num < 0) num += fbwindow().numClients() + 1; |
90 | return; | 90 | if (num < 1) num = 1; |
91 | if (num > fbwindow().numClients()) num = fbwindow().numClients(); | ||
91 | 92 | ||
92 | FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); | 93 | FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); |
93 | 94 | ||