aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session/session.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-17 16:03:32 +0000
committerWeblate <noreply@weblate.org>2017-08-17 16:03:32 +0000
commita47ab10c6ea6057de5567f66292250d187d75ab9 (patch)
treed0cde7717f8fec52697d178dc6ef2a79ce927d68 /src-qt5/core/lumina-session/session.h
parentTranslated using Weblate (Portuguese (Brazil)) (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-a47ab10c6ea6057de5567f66292250d187d75ab9.tar.gz
lumina-a47ab10c6ea6057de5567f66292250d187d75ab9.tar.bz2
lumina-a47ab10c6ea6057de5567f66292250d187d75ab9.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-session/session.h')
-rw-r--r--src-qt5/core/lumina-session/session.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-session/session.h b/src-qt5/core/lumina-session/session.h
index caa61ad6..5cf1ccfa 100644
--- a/src-qt5/core/lumina-session/session.h
+++ b/src-qt5/core/lumina-session/session.h
@@ -8,6 +8,7 @@
#include <QProcess>
#include <QDebug>
#include <QFileSystemWatcher>
+#include <QTimer>
#include <sys/types.h>
#include <signal.h>
@@ -59,6 +60,8 @@ class LSession : public QObject{
private:
QList<QProcess*> PROCS;
bool stopping;
+ int wmfails;
+ QTimer *wmTimer;
private slots:
void stopall();
@@ -67,9 +70,14 @@ private slots:
void startProcess(QString ID, QString command, QStringList watchfiles = QStringList());
+ void resetWMCounter(){ wmfails = 0; }
public:
LSession(){
- stopping = false;
+ stopping = false; wmfails = 0;
+ wmTimer = new QTimer(this);
+ wmTimer->setSingleShot(true);
+ wmTimer->setInterval(2000); //2 second timeout
+ connect(wmTimer, SIGNAL(timeout()), this, SLOT(resetWMCounter()) );
}
~LSession(){ }
bgstack15