Skip to content

Keep the still on screen until OWE takes a video background - #17082

Merged
bjarneo merged 2 commits into
omacom:quattrofrom
bjarneo:owe-keep-still-for-video
Oct 30, 2026
Merged

bjarneo merged 2 commits into
omacom:quattrofrom
bjarneo:owe-keep-still-for-video

Conversation

@bjarneo

@bjarneo bjarneo commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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

transitionBackground in shell/plugins/background/Background.qml sets displayedBackground to the video path at once. BackgroundMedia draws 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:

  • A parked OWE renderer still holds the last frame of the previous video.
  • With no renderer running, nothing is under the layer, so the desktop is black.

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:

  • A switch while the layer is suspended.
  • An instant switch, such as background setInstant.
  • A switch from a video to a still, which uses the snapshot cover.

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

Check Result
background-pending-theme-test.sh, extended: a video chosen while a reveal waits keeps the stills, and the reveal ends on its still passes. Fails on the base branch, on the first commit, and without the end-of-reveal change
background-startup-failure, background-intro-lifecycle, theme-intro-switch pass
60 fps screen recordings with OWE from omacom/owe#27, warm renderer the still holds until 120 ms, then fades into the moving video by 395 ms. Before: an old video frame at 0 ms
Same, no renderer running the still holds until 255 ms, then fades by 545 ms. Before: 400 ms of black
Recording of a switch from a video to a still the snapshot cover and the reveal work as before, and no old still shows
Recording of a video chosen 319 ms into a reveal the reveal runs until OWE takes over, then OWE fades into the video. No old still shows. With no renderer running, 1 or 2 dark frames can show when the new renderer commits its first buffer. A cold switch from a settled still shows them too, so they come from OWE, not from this change

To test

test/shell.d/background-pending-theme-test.sh
omarchy-theme-bg-set <a still without an intro>
omarchy-theme-bg-set <a video>

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.
@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new blocking issue was found.

Summary

Keeps the still background visible until OWE takes over a video background.

  • The background keeps a still visible until OWE takes over a video.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Video selected while a still is visible] --> B{Still reveal in progress?}
  B -->|Yes| C[Let the reveal finish on its incoming still]
  B -->|No| D[Keep the displayed still]
  C --> E[OWE gets the first video frame]
  D --> E
  E --> F[OWE suspends the shell background layer]
  F --> G[OWE fades the still into the video]
Loading

Reviews (2) · Last reviewed commit: "Let a reveal finish when a video is chos..." · Reviewed by Greptile

Comment thread shell/plugins/background/Background.qml Resolved
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.
@bjarneo
bjarneo merged commit 432ae66 into omacom:quattro Oct 30, 2026
3 checks passed
@bjarneo
bjarneo deleted the owe-keep-still-for-video branch October 31, 2026 15:38
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants