aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 5ce933a..a118fb3 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.5 2003/04/28 01:17:39 fluxgen Exp $ 22// $Id: FbCommands.cc,v 1.6 2003/06/08 13:47:30 rathnor Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -62,8 +62,15 @@ void ExitFluxboxCmd::execute() {
62 Fluxbox::instance()->shutdown(); 62 Fluxbox::instance()->shutdown();
63} 63}
64 64
65RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){
66}
67
65void RestartFluxboxCmd::execute() { 68void RestartFluxboxCmd::execute() {
66 Fluxbox::instance()->restart(); 69 if (m_cmd.size() == 0) {
70 Fluxbox::instance()->restart();
71 } else {
72 Fluxbox::instance()->restart(m_cmd.c_str());
73 }
67} 74}
68 75
69void ReconfigureFluxboxCmd::execute() { 76void ReconfigureFluxboxCmd::execute() {