Skip to content

Pages drawn while the launcher is in the background show at once - #569

Merged
elripalda merged 2 commits into
mainfrom
claude/project-thread-d49tbl-unfocused-blank2
Nov 25, 2026
Merged

elripalda merged 2 commits into
mainfrom
claude/project-thread-d49tbl-unfocused-blank2

Conversation

@elripalda

Copy link
Copy Markdown
Owner

Same change as #559, which was merged before review and taken out in #564. Up again for review.

What this changes

When another window is in front of the launcher, it pauses every animation so it draws nothing while idle. Pages fade and rise in with animations, so a page drawn while the launcher was in the background (a download finishing, Home's list coming in from the website, a page opened by a test tool) stayed stuck on its first frame. That frame is invisible, so the page looked blank until you clicked the window.

Now, while the launcher is in the background or minimized, animations that have an end are jumped to their end, so the page shows as it should. Looping ones (spinners, the hero's slow zoom, Big Picture's background) still stay paused, so it still draws nothing while idle. It uses document.getAnimations() and a MutationObserver that only runs while the window is in the background.

How you tested it

  • node --test tests/*.test.cjs passes
  • CI passed on all six jobs as Pages drawn while the launcher is in the background show at once #559
  • Tried it in the launcher (Linux build): with the window marked as in the background, opened Library and Home. Before, the header, chips and tiles stayed at opacity 0. Now they show, and a spinner added at the same time stays paused.

Checklist

  • One change per pull request
  • Not a fix for one recomp's own quirks
  • No version bump or patch notes

Generated by Claude Code

elripalda and others added 2 commits November 25, 2026 08:23
While another window is in front, the launcher pauses every animation.
A page drawn then (a download finishing, Home's list coming in) stayed
on its first frame, which is invisible, until the window was clicked.
Animations that end are now put at their end while it's in the
background; looping ones (spinners, the hero) still stay paused.

Co-authored-by: Ripalda <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@Xarishark Xarishark self-assigned this Nov 25, 2026

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit 97c1f78 into main Nov 25, 2026
6 checks passed
@elripalda
elripalda deleted the claude/project-thread-d49tbl-unfocused-blank2 branch November 25, 2026 15:28
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