Skip to content

Keep fullscreen Receiver video above local notifications - #162

Merged
swellweb merged 1 commit into
swellweb:dev-3.4.0from
Betafer:codex/receiver-notification-shield
Aug 9, 2026
Merged

swellweb merged 1 commit into
swellweb:dev-3.4.0from
Betafer:codex/receiver-notification-shield

Conversation

@Betafer

@Betafer Betafer commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

A short story

Thank you again for TargetBridge. While using a 21.5-inch 2017 Retina 4K iMac as the Receiver for a Mac mini M4, the streamed desktop itself worked very well, but local iMac notification banners could remain above the fullscreen video and hide the top-right corner. This small PR isolates only that visual issue from the larger experiment in #157.

It does not depend on USB4 selection (#159), Retina 4K capture (#160) or headless lifecycle changes (#161).

What changes

  • when the Receiver enters an active fullscreen session, its native Cocoa content window is raised to the public status-window level;
  • on Stop/disconnect or when fullscreen is disabled, the normal window level is restored;
  • the desired level is reapplied once 300 ms after SDL's fullscreen call because the native transition completes asynchronously;
  • the delayed callback reads the latest state, so a rapid Stop cannot raise the window again with stale data;
  • the existing largest-content-window lookup is shared with the active-Space check instead of duplicated.

The implementation uses only public AppKit/CoreGraphics window levels. It does not change Focus, hide all notifications globally, use private APIs or use the more invasive screen-saver/shielding levels.

Validation

  • the complete Receiver builds successfully, including the Objective-C Cocoa bridge;
  • Receiver parser suite: 60 checks passed;
  • git diff --check clean.

The same behavior was also observed on the actual 2017 iMac Receiver: local login-item notifications no longer remained over the Mac mini video, and normal window behavior returned after leaving the session.

Scope

Three Receiver files only; no Sender, protocol, networking, input, audio, installer or version changes.

@Betafer
Betafer marked this pull request as ready for review August 7, 2026 22:10
@swellweb
swellweb merged commit 8fafbe9 into swellweb:dev-3.4.0 Aug 9, 2026
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