summaryrefslogtreecommitdiffstats
path: root/src/client/util/platform/blankscreen_X11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/platform/blankscreen_X11.cpp')
-rw-r--r--src/client/util/platform/blankscreen_X11.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/util/platform/blankscreen_X11.cpp b/src/client/util/platform/blankscreen_X11.cpp
index 1f36f89..ee644ca 100644
--- a/src/client/util/platform/blankscreen_X11.cpp
+++ b/src/client/util/platform/blankscreen_X11.cpp
@@ -4,6 +4,7 @@
#include <QApplication>
#include <QProcess>
#include <QDesktopWidget>
+#include <QTimer>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
@@ -26,6 +27,9 @@ BlankScreen::BlankScreen() : QDialog(NULL)
setStyleSheet("background-color:#000");
_locked = false;
+ QTimer *upper = new QTimer(this);
+ connect(upper, SIGNAL(timeout()), this, SLOT(timer_moveToTop()));
+ upper->start(1111);
}
BlankScreen::~BlankScreen()
@@ -86,3 +90,11 @@ bool BlankScreen::unlock()
_locked = false;
return true;
}
+
+void BlankScreen::timer_moveToTop()
+{
+ if (this->isHidden())
+ return;
+ activateWindow();
+ raise();
+}