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