aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-05-23 16:07:58 (GMT)
committermarkt <markt>2007-05-23 16:07:58 (GMT)
commite3787efd9f69b036b424ccf451fe617f4f6aa1e5 (patch)
treee434b08dd443123e4a201dacf5ab855701798848 /src/FbCommandFactory.cc
parent4e0eb904385b06271e0a41b1e46bcc2d94bc2896 (diff)
downloadfluxbox-e3787efd9f69b036b424ccf451fe617f4f6aa1e5.zip
fluxbox-e3787efd9f69b036b424ccf451fe617f4f6aa1e5.tar.bz2
added :attach command
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index 0daec6d..1e5b506 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -85,6 +85,7 @@ FbCommandFactory::FbCommandFactory() {
85 // setup commands that we can handle 85 // setup commands that we can handle
86 const char* commands[] = { 86 const char* commands[] = {
87 "arrangewindows", 87 "arrangewindows",
88 "attach",
88 "bindkey", 89 "bindkey",
89 "clientmenu", 90 "clientmenu",
90 "close", 91 "close",
@@ -487,6 +488,11 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
487 cerr<<"*** WARNING: 'Workspace<n>' actions are deprecated! Use 'Workspace <n>' instead"<<endl; 488 cerr<<"*** WARNING: 'Workspace<n>' actions are deprecated! Use 'Workspace <n>' instead"<<endl;
488 return new JumpToWorkspaceCmd(getint(command.substr(9).c_str(), 1) - 1); 489 return new JumpToWorkspaceCmd(getint(command.substr(9).c_str(), 1) - 1);
489 490
491 } else if (command == "attach") {
492 int opts; // not used
493 string pat;
494 parseNextWindowArgs(arguments, opts, pat);
495 return new AttachCmd(pat);
490 } else if (command == "nextwindow") { 496 } else if (command == "nextwindow") {
491 int opts; 497 int opts;
492 string pat; 498 string pat;