diff options
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index e68ec8f..a07dbb2 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -60,6 +60,18 @@ void SendToPrevWorkspaceCmd::real_execute() { | |||
60 | fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow()); | 60 | fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow()); |
61 | } | 61 | } |
62 | 62 | ||
63 | void GoToTabCmd::real_execute() { | ||
64 | if (fbwindow().numClients() <= 1 || m_tab_num > fbwindow().numClients()) | ||
65 | return; | ||
66 | |||
67 | FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin(); | ||
68 | |||
69 | int num = m_tab_num; | ||
70 | while (--num > 0) ++it; | ||
71 | |||
72 | fbwindow().setCurrentClient(**it, true); | ||
73 | } | ||
74 | |||
63 | void WindowHelperCmd::execute() { | 75 | void WindowHelperCmd::execute() { |
64 | WinClient *client = Fluxbox::instance()->getFocusedWindow(); | 76 | WinClient *client = Fluxbox::instance()->getFocusedWindow(); |
65 | if (client && client->fbwindow()) // guarantee that fbwindow() exists too | 77 | if (client && client->fbwindow()) // guarantee that fbwindow() exists too |