diff options
author | fluxgen <fluxgen> | 2004-12-10 09:49:01 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-12-10 09:49:01 (GMT) |
commit | 6ba7744f65453a2705ba1bb88ce355c4cfde9276 (patch) | |
tree | f8ce7cf3fc2be0ab624edaa827ea73dab4ae436c /src/CurrentWindowCmd.cc | |
parent | cc486c194f862bf0d8d8b3644c321446b0d3f051 (diff) | |
download | fluxbox_lack-6ba7744f65453a2705ba1bb88ce355c4cfde9276.zip fluxbox_lack-6ba7744f65453a2705ba1bb88ce355c4cfde9276.tar.bz2 |
Tab command, thanks Steeve Lennmark, steeve dot lennmark at mediasvar dot se
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 |