4 #include <QApplication>
6 #include <QDesktopWidget>
22 setWindowFlags(Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint);
23 setStyleSheet(
"background-color:#000");
26 auto *upper =
new QTimer(
this);
49 this->setGeometry(QApplication::desktop()->geometry());
50 this->showFullScreen();
51 this->activateWindow();
56 XGrabKeyboard(
_sysdep->
dpy, DefaultRootWindow(
_sysdep->
dpy),
false, GrabModeAsync, GrabModeAsync, CurrentTime);
57 XGrabPointer(
_sysdep->
dpy, DefaultRootWindow(
_sysdep->
dpy),
false, 0, GrabModeAsync, GrabModeAsync, None, 0, CurrentTime);
61 ungrabP.start(
"/bin/bash", QStringList() <<
"/opt/openslx/pvs2/kb-lock.sh");
62 ungrabP.waitForFinished();
84 regrabP.start(
"/bin/bash", QStringList() <<
"/opt/openslx/pvs2/kb-unlock.sh");
85 regrabP.waitForFinished();
bool lock(const QString &message)
BlankScreen_Sysdep * _sysdep