pragma ComponentBehavior: Bound import QtQuick import Quickshell import Quickshell.Wayland // The session lock (ext-session-lock: one surface per output) plus the // preview, which shows the same UI in ordinary overlay windows. Scope { WlSessionLock { locked: LockState.locked WlSessionLockSurface { id: surface color: "#000000" LockSurface { anchors.fill: parent screenName: surface.screen ? surface.screen.name : "" } } } Variants { model: LockState.previewing ? Quickshell.screens : [] // qmllint disable uncreatable-type PanelWindow { id: previewWindow required property var modelData screen: modelData anchors { top: true bottom: true left: true right: true } color: "#000000" exclusionMode: ExclusionMode.Ignore WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.namespace: "glassMxrph-lock-preview" WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive LockSurface { anchors.fill: parent screenName: previewWindow.modelData.name preview: true } } } }