diff options
Diffstat (limited to 'lumina-desktop/WMProcess.cpp')
-rw-r--r-- | lumina-desktop/WMProcess.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lumina-desktop/WMProcess.cpp b/lumina-desktop/WMProcess.cpp index e84e4c22..9e398f93 100644 --- a/lumina-desktop/WMProcess.cpp +++ b/lumina-desktop/WMProcess.cpp @@ -43,6 +43,16 @@ void WMProcess::stopWM(){ } } +void WMProcess::restartWM(){ + if(isRunning()){ + inShutdown = true; + this->kill(); + if(!this->waitForFinished(5000) ){ this->terminate(); }; + inShutdown = false; + } + this->startWM(); +} + void WMProcess::updateWM(){ if(isRunning()){ ::kill(this->pid(), SIGUSR2); //send fluxbox the signal to reload it's configuration |