Draw the lock screen video from the OWE lock feed

The shell drops its own player: BackgroundMedia is image-only, and the
lock loads Owe.LockFeedSurface through a Loader, so a system without the
module shows no lock video instead of losing the whole lock screen. The
feed pauses per output when the panel blanks or power saver turns on.

The lock view keeps its still effect path and darkens the feed for
legibility. QtMultimedia and the shell video pause policy are gone, and
the base package list requires owe and owe-lockfeed instead.
This commit is contained in:
Bjarne Oeverli committed 2026-09-18 22:49:47 +02:00
1 parent 2e3142a105
commit eff410f91e
8 files changed
+92 -248

No files matched your search

-7
View File
@@ -16,7 +16,6 @@ Item {
property string currentBackground: ""
property string displayedBackground: ""
property int displayedReloads: 0
property string incomingBackground: ""
property string oldBackground: ""
property bool finishingTransition: false
@@ -60,9 +59,6 @@ Item {
if (instant || !displayedBackground || isVideo(path) || isVideo(displayedBackground)) {
oldBackground = ""
incomingBackground = ""
// A theme switch can replace the file behind an unchanged path, which
// an unchanged property would never pick up.
if (displayedBackground === finalPath) displayedReloads += 1
displayedBackground = finalPath
revealProgress = 1
return
@@ -187,7 +183,6 @@ Item {
}
Component.onCompleted: {
oweStatusProc.running = true
refreshBackground()
}
@@ -237,8 +232,6 @@ Item {
id: base
anchors.fill: parent
path: root.displayedBackground
reloads: root.displayedReloads
videoEnabled: false
onReadyChanged: {
if (ready && root.finishingTransition) {
root.incomingBackground = ""