Skip to content

feat(window,screen-capture): add WindowLevel, instant macOS visibility, square frameless, and exclude_own_windows - #115

Merged
lijy91 merged 1 commit into
mainfrom
feat/issue-85-window-overlay
Dec 3, 2026
Merged

lijy91 merged 1 commit into
mainfrom
feat/issue-85-window-overlay

Conversation

@lijy91

@lijy91 lijy91 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

Implements the four core API gaps tracked in libnativeapi/nativeapi#85 so overlay tools (such as region screenshots) can be built purely through nativeapi without custom platform runner code:

Verification

  • cmake --build build && ctest --test-dir build --output-on-failure -R "screen_capture_test|window_corner_preference_unsupported_test" — 2/2 passed on macOS.
  • C ABI regenerated and verified via ./codegen check (87 files up to date).

…y, square frameless, and exclude_own_windows

- Add WindowLevel (Normal, Floating, Status, ScreenSaver) with Window::SetLevel/GetLevel across all platforms and unconstrained macOS bounds at Status/ScreenSaver levels (#81)
- Disable AppKit hide/show fade-and-shrink animation in macOS Window::Hide/Show/ShowInactive (#82)
- Strip NSWindowStyleMaskTitled in macOS Window::SetFrameless(true) for true square corners while preserving key/main focusability (#83)
- Add ScreenCaptureOptions::exclude_own_windows on macOS (SCContentFilter excluding own PID) and Windows (WDA_EXCLUDEFROMCAPTURE) (#84)
@lijy91
lijy91 merged commit dfb0b1e into main Dec 3, 2026
8 of 11 checks passed
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.

1 participant