diff options
author | markt <markt> | 2007-07-02 05:27:21 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-02 05:27:21 (GMT) |
commit | 295c929f984a5dbc54d9672e092e79abcf0f227a (patch) | |
tree | 7e54b5d70554aa2704d14c9388b18d0c9bab8b4e /src/CurrentWindowCmd.cc | |
parent | 4e5e7668504ee511b0a422df08f2338f3f68e0fe (diff) | |
download | fluxbox-295c929f984a5dbc54d9672e092e79abcf0f227a.zip fluxbox-295c929f984a5dbc54d9672e092e79abcf0f227a.tar.bz2 |
minor usability fix for :Tab and :GoToWindow commands
fixed handle rendering when switching from a style without them
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 f411f83..4a60e63 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -94,9 +94,10 @@ void TakeToPrevWorkspaceCmd::real_execute() { | |||
94 | } | 94 | } |
95 | 95 | ||
96 | void GoToTabCmd::real_execute() { | 96 | void GoToTabCmd::real_execute() { |
97 | int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1); | 97 | int num = m_tab_num; |
98 | if (num < 1 || num > fbwindow().numClients()) | 98 | if (num < 0) num += fbwindow().numClients() + 1; |
99 | return; | 99 | if (num < 1) num = 1; |
100 | if (num > fbwindow().numClients()) num = fbwindow().numClients(); | ||
100 | 101 | ||
101 | FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); | 102 | FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); |
102 | 103 | ||