Set lock screen to be lock screen type window

This commit is contained in:
Victor Tran 2023-09-25 22:31:07 +10:00
parent 6c507dbe25
commit fc39227336
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View file

@ -96,3 +96,7 @@ void MainWindow::changeEvent(QEvent* event) {
LockManager::instance()->raiseAll();
}
}
void MainWindow::showEvent(QShowEvent* event) {
DesktopWm::instance()->setSystemWindow(this, DesktopWm::SystemWindowTypeLockScreen);
}

View file

@ -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