Repository navigation
Keep the still on screen until OWE takes a video background - #17082
Merged
Merged
Conversation
A switch from a still to a video cleared the shell's still at once. The background layer turned transparent before OWE had a frame, so the desktop showed an old frame of OWE's parked renderer or an empty background. OWE then drew the still again and faded it into the video, so the switch flickered before the fade. The layer now keeps the current still when the next background is a video, until OWE suspends the layer after the video's first frame. OWE fades from the same still, so the switch is one fade. A switch with a suspended layer, an instant switch, and a switch from a video work as before. test/shell.d/background-video-keeps-still-test.sh checks both cases.
Contributor
[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new blocking issue was found. SummaryKeeps the still background visible until OWE takes over a video background.
|
A video chosen during a reveal between 2 stills switched the base image to the incoming still and cleared the reveal's images at once. The base image loads on its own, so the desktop could show a blank frame or an old frame of OWE's renderer. The video selection now leaves a running or pending reveal alone. The reveal finishes on its incoming still, and the reveal's images cover the desktop until the base image is ready. That still is the one OWE fades from. At the end of the reveal, a video as the current background no longer replaces the still. The test moves into background-pending-theme-test.sh and reuses its setup and Quickshell launch. It chooses a video while a reveal is pending and checks that the stills stay on screen and that the reveal ends on its still.
This was referenced Nov 2, 2026
20 of 34 tasks
berenddeboer
pushed a commit
to berenddeboer/omarchy
that referenced
this pull request
Nov 6, 2026
…7082) * Keep the still on screen until OWE takes a video background A switch from a still to a video cleared the shell's still at once. The background layer turned transparent before OWE had a frame, so the desktop showed an old frame of OWE's parked renderer or an empty background. OWE then drew the still again and faded it into the video, so the switch flickered before the fade. The layer now keeps the current still when the next background is a video, until OWE suspends the layer after the video's first frame. OWE fades from the same still, so the switch is one fade. A switch with a suspended layer, an instant switch, and a switch from a video work as before. test/shell.d/background-video-keeps-still-test.sh checks both cases. * Let a reveal finish when a video is chosen during it A video chosen during a reveal between 2 stills switched the base image to the incoming still and cleared the reveal's images at once. The base image loads on its own, so the desktop could show a blank frame or an old frame of OWE's renderer. The video selection now leaves a running or pending reveal alone. The reveal finishes on its incoming still, and the reveal's images cover the desktop until the base image is ready. That still is the one OWE fades from. At the end of the reveal, a video as the current background no longer replaces the still. The test moves into background-pending-theme-test.sh and reuses its setup and Quickshell launch. It chooses a video while a reveal is pending and checks that the stills stay on screen and that the reveal ends on its still. (cherry picked from commit 432ae66)
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes for users
A switch from a still background to a video background is now one smooth fade. Before this change, the desktop first showed an old frame of the previous video, or an empty background, for 100 to 400 ms. Then the still came back and faded into the new video.
The problem
transitionBackgroundinshell/plugins/background/Background.qmlsetsdisplayedBackgroundto the video path at once.BackgroundMediadraws nothing for a video, so the background layer turns transparent immediately. OWE needs about 100 ms or more to load the video. Until then, the compositor shows what is under the shell's layer:OWE then draws the same still and fades it into the video. omacom/owe#27 makes OWE hold that still until the shell's layer is suspended, and then start the fade. That only works if the shell keeps its still until then.
The fix
When the next background is a video and the layer shows a still, the layer keeps that still. OWE suspends the layer after the video's first frame, and the fade starts from the same still.
These switches work as before:
background setInstant.If a reveal between 2 stills runs or waits for its image when a video is selected, the reveal finishes on its incoming still. Its images cover the desktop until the base image is ready, and that still is the one OWE fades from. If OWE takes over before the reveal ends, the rest of the reveal is cut, and OWE fades from the full incoming still.
Tests
background-pending-theme-test.sh, extended: a video chosen while a reveal waits keeps the stills, and the reveal ends on its stillbackground-startup-failure,background-intro-lifecycle,theme-intro-switchTo test