Repository navigation
Conversation
While a recording runs, macOS draws a purple dot in the top-right corner of every display. It is a WindowServer window titled StatusIndicator, and SCContentFilter captured it like any other window, so it showed in the stream. Exclude it when the stream starts and again two seconds later via updateContentFilter, since starting the capture is what creates it.
|
This branch has not been deployed
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.



Description
While Sunshine captures, macOS shows its purple recording indicator in the top-right corner of every display, and ScreenCaptureKit captures it along with everything else (sc_capture.mm#L258 excludes no windows). On a dedicated or virtual display used for streaming, the dot sits on top of the game for the whole session.
The indicator is a WindowServer window titled
StatusIndicatorwith no owning bundle, andSCShareableContentlists it. This excludes those windows from the content filter: once from fresh content when the stream starts, and again two seconds later throughupdateContentFilter, because starting the capture is what creates the indicator. Nothing changes on the Mac's own screens; the indicator still shows there.Screenshot
N/A
Issues Fixed or Closed
Roadmap Issues
Testing
SCCaptureLoop.PrivacyIndicatorWindowIsRecognizedfor the window match (title plus no bundle, so an app window with that title is still captured).test_sunshineon macOS 27.2.1 / M3 Pro with-DBUILD_WERROR=ON: 812 passed, 9 skipped, excluding*AudioTest*, which waits on a microphone permission prompt for the test binary here and hangs (unrelated).CGVirtualDisplay; the dot was visible in the stream before the change and not after.Type of Change
Checklist
AI Usage
See our AI usage policy.