mirror of
https://github.com/theCheeseboard/thedesk.git
synced 2025-01-22 10:22:02 -05:00
Set lock screen to be lock screen type window
This commit is contained in:
parent
6c507dbe25
commit
fc39227336
2 changed files with 8 additions and 0 deletions
|
@ -96,3 +96,7 @@ void MainWindow::changeEvent(QEvent* event) {
|
|||
LockManager::instance()->raiseAll();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::showEvent(QShowEvent* event) {
|
||||
DesktopWm::instance()->setSystemWindow(this, DesktopWm::SystemWindowTypeLockScreen);
|
||||
}
|
||||
|
|
|
@ -31,6 +31,10 @@ class MainWindow : public QMainWindow {
|
|||
// QWidget interface
|
||||
protected:
|
||||
void changeEvent(QEvent* event);
|
||||
|
||||
// QWidget interface
|
||||
protected:
|
||||
void showEvent(QShowEvent *event);
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
|
Loading…
Reference in a new issue