2024-03-08 03:42:49 -08:00
|
|
|
import QtQuick
|
|
|
|
import Quickshell
|
|
|
|
|
|
|
|
ShellRoot {
|
2024-06-18 17:14:51 -07:00
|
|
|
LockContext {
|
|
|
|
id: lockContext
|
|
|
|
onUnlocked: Qt.quit();
|
2024-03-08 03:42:49 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
FloatingWindow {
|
2024-06-18 17:14:51 -07:00
|
|
|
LockSurface {
|
2024-03-08 03:42:49 -08:00
|
|
|
anchors.fill: parent
|
2024-06-18 17:14:51 -07:00
|
|
|
context: lockContext
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// exit the example if the window closes
|
|
|
|
Connections {
|
|
|
|
target: Quickshell
|
|
|
|
|
|
|
|
function onLastWindowClosed() {
|
|
|
|
Qt.quit();
|
2024-03-08 03:42:49 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|