diff options
author | markt <markt> | 2007-07-02 05:26:32 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-02 05:26:32 (GMT) |
commit | 562fa2642354fb2bb7281fc70b777b3e22662df6 (patch) | |
tree | 6ab5dc9b178eeb41b36bd7773c89c3e8ba1e8e1e /src/CurrentWindowCmd.cc | |
parent | 5fcb520bbb891683a8321cebe4d9fbe9d88e5709 (diff) | |
download | fluxbox_pavel-562fa2642354fb2bb7281fc70b777b3e22662df6.zip fluxbox_pavel-562fa2642354fb2bb7281fc70b777b3e22662df6.tar.bz2 |
minor usability fix for :Tab command and 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 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 | ||