Skip to content

Lift a video-to-video switch's cover once OWE shows the new video - #19616

Open
AndreasAdi wants to merge 1 commit into
omacom:quattrofrom
AndreasAdi:fix-video-to-video-cover
Open

AndreasAdi wants to merge 1 commit into
omacom:quattrofrom
AndreasAdi:fix-video-to-video-cover

Conversation

@AndreasAdi

@AndreasAdi AndreasAdi commented Nov 21, 2026 •

Copy link
Copy Markdown

What changes

Fixes #18659. Switching the background from one video to another holds a frozen frame of the old video over the desktop for ~10 s, though OWE shows the new video within ~0.3 s.

BackgroundSwitch covers the desktop with a snapshot when a change happens while OWE holds it, then calls BackgroundIntro.finishTheme(). That waits for the shell's background to turn ready, or for the frame poll to see a video. When the new background is also a video, neither happens:

  • OWE keeps the shell's background suspended, so backgroundReady never turns true.
  • The frame poll only starts when backgroundActive changes to false. It was already false before the cover went up, so the poll never starts.

Only the 10 s themeFallback lifts the cover, and busy queues any background picked meanwhile.

finishTheme() now takes the switch's background. When OWE holds the desktop and that background is a video, it starts the frame poll for that path. The poll reveals once owe render-status reports that path ready without a transition. It matches the path because the outgoing video passes the existing check too. It doesn't require time_pos > 0, since a video loaded under a pause policy holds its first frame at 0. Intro playback and still targets keep their existing paths.

Verification

  • test/shell.d/background-video-handoff-test.sh (new; Speed up test suite and run compositor tests headlessly #19904 removed background-intro-lifecycle-test.sh, where the first version of this test lived): OWE first reports the outgoing video, playing; the cover must stay. Then it reports the new video, paused at 0; the cover must open. It fails on quattro (the cover opens once OWE shows the new video, paused on its first frame) and passes with the fix. On the rebased head, ./test/shell passes: 253 files, none failing.
  • On a live session (Ryzen 5 3500U / Vega 8, two 1080p outputs, owe 0.2.18), I timed omarchy-theme-bg-set until themeIntroBusy reports ready:
    • installed shell: video → video 10 981 ms
    • this branch, with owed restarted against it so its suspend calls reach it:
      • video → video 1 145–1 163 ms (three switches): the ~0.3 s snapshot and handoff, plus the 840 ms cut
      • video → still: 1 278 ms
      • still → video: 276 ms
  • Through the background menu (omarchy-theme-bg-switcher, Left + Return sent with wtype), from the keypress until themeIntroBusy reports ready, video → video:
    • installed shell: 11 257 ms and 11 240 ms
    • this branch: 1 336 ms and 1 314 ms
    • In both runs OWE logged media ready ~0.65–0.8 s after the keypress.
  • The recording read frame by frame shows the old frame opening with the slanted cut onto the new video, with no blank or black frame.

Not checked: a theme switch onto a video background. It goes through play() with its own clip and doesn't reach this path.

Side note, not changed here: after a shell restart, the shell assumes it isn't suspended until OWE next toggles it, since OWE only sends changes. While that lasts, video → video takes the ordinary path and doesn't show this bug.

Screenshots

Recordings of a video → video switch are in the first comment:

  • Before: installed shell, ~11 s frozen cover
  • After: this branch, ~1.1 s cut

Filed by Claude Opus 5.5 via Claude Code.

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

The cover now opens once OWE reports the selected video ready, including when that video is paused at frame zero.

  • Video background switches reveal the new video when OWE reports it ready.

Diagram

sequenceDiagram
  participant Switch as BackgroundSwitch
  participant Intro as BackgroundIntro
  participant OWE
  Switch->>Intro: finishTheme(token, cut, selectedPath)
  Intro->>OWE: render-status
  OWE-->>Intro: Outgoing video
  Note over Intro: Keep cover
  Intro->>OWE: render-status
  OWE-->>Intro: Selected path ready, no transition
  Intro->>Intro: revealTheme()
Loading

Reviews (3) · Last reviewed commit: "Lift a video-to-video switch's cover onc..." · Reviewed by Greptile

@AndreasAdi

Copy link
Copy Markdown
Author

before, about 11 s with the frozen frame

screenrecording-2026-11-21_08-44-28.mp4

@AndreasAdi

Copy link
Copy Markdown
Author

after, about 1.1 s

screenrecording-2026-11-21_08-46-09.mp4

@omarchybot

Copy link
Copy Markdown
Collaborator

Codex (GPT-6, High) read the diff, comments, linked issue #18659, base-branch rules and background handoff callers at 6555ff9db210a5f55f580ff04b764666dc1da680. I classified this as a bug, but the second classifier, deepseek-v4p1-flash, returned no classification, so classification remains unresolved.

The queue workflow stops here for maintainer review. No reproduction, worker tests or diagnosis second opinion has run, and verification is incomplete. No code or labels were changed.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex (GPT-6, High) reproduced #18659 on an ISO worker running real Hyprland/Quickshell and OWE 0.2.18. Through omarchy-theme-bg-set, the old cover stayed for 10.07 s on current quattro, versus 0.54–0.63 s at 6555ff9db210a5f55f580ff04b764666dc1da680; reverting the two production QML changes restored the 10.14 s delay. A target paused at frame zero also revealed correctly. With animations enabled, the switch completed in 1.18 s and sampled captures showed the new video opening through the cut.

./test/cli and the seven focused shell files passed on that head: background-intro-lifecycle, background-intro, background-pending-theme, background-startup, background-startup-failure, theme-intro-switch, and video-background. Video-to-still and still-to-video also worked in the live session. The live reproduction was separate from the author's fixture; I did not run that fixture against base files.

Opus 5.5 High reviewed the same head and found no blocking findings; reviewer independence is not guaranteed. This waits on maintainer approval of the Tests and Check translation structure workflows: GitHub reports both as action_required.

Before on quattro: the red cover remains while OWE already reports the blue target ready

After on the PR head: the blue target is visible after settlement, with animations disabled for the timing comparison

During the animation-enabled switch on the PR head: the blue target opens between the red cover's edges

The next sampled checkpoint: the blue target fills the desktop; these captures sample the cut rather than every frame

Comment thread shell/services/BackgroundIntro.qml Resolved
A switch from a playing video to another video raised its cover while OWE
already held the desktop, so the shell's background never turned ready and
the frame poll never started. The cover stayed for the 10 s fallback.
finishTheme now polls OWE for the new video's path when the switch ends on a
video, and reveals once it is ready, paused or playing.

Fixes omacom#18659

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AndreasAdi
AndreasAdi force-pushed the fix-video-to-video-cover branch from d3cbc0e to 3193327 Compare November 23, 2026 14:34
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex (GPT-6, High) checked 319332736e1c4c1507fd37f49570ec8ed2c9da41 on a fresh ISO worker running real Hyprland/Quickshell and OWE 0.2.18. Through omarchy-theme-bg-set, the frozen cover lasted 10.09 s on current quattro, versus 0.38–0.55 s on this head; restoring the two production QML files from base brought back the 10.07 s delay. Animations were disabled for these timings.

./test/cli and the four focused shell files passed: background-video-handoff, background-intro, theme-intro-switch, and video-background. The newly committed handoff test passed on this head and failed with the production fix reverted: it kept the cover over the outgoing video but did not open for the selected video paused at frame zero. No code was pushed in this pass.

Greptile now scores this head 5/5, and I answered its missing-test finding with the mutation result. The required Opus 5.5 High second opinion could not run because its weekly quota is exhausted; omabot review --ping confirmed that it was unavailable. The separate readiness judge also returned no judgement. Review remains incomplete, so verified and ready have not been added. This waits on maintainer attention to reviewer availability and approval of the Tests and Check translation structure workflows, both currently action_required.

Before on current quattro: the red cover still hides the desktop while OWE reports the blue target ready; this checkpoint is during the ten-second wait

After on the latest PR head: the blue target is visible once the switch settles; this capture shows the result with animations disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

2 participants