aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-12-10 09:49:01 (GMT)
committerfluxgen <fluxgen>2004-12-10 09:49:01 (GMT)
commit6ba7744f65453a2705ba1bb88ce355c4cfde9276 (patch)
treef8ce7cf3fc2be0ab624edaa827ea73dab4ae436c /src/CurrentWindowCmd.cc
parentcc486c194f862bf0d8d8b3644c321446b0d3f051 (diff)
downloadfluxbox-6ba7744f65453a2705ba1bb88ce355c4cfde9276.zip
fluxbox-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.cc12
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
63void 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
63void WindowHelperCmd::execute() { 75void 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