aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-06-08 13:47:30 (GMT)
committerrathnor <rathnor>2003-06-08 13:47:30 (GMT)
commit93b2f8921c70e2cf5f2f2c3cf79943de54b6709b (patch)
tree9291b92cf9feb4f7647cdc8a88fd9af44c050450 /src/FbCommands.cc
parentefe8bf4acd913a48ba08c4fa390297da27d17590 (diff)
downloadfluxbox-93b2f8921c70e2cf5f2f2c3cf79943de54b6709b.zip
fluxbox-93b2f8921c70e2cf5f2f2c3cf79943de54b6709b.tar.bz2
fix restart in menu to accept and use an argument
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() {