Skip to content

Fix null pointer reference on MacOS#174

Open
keathmilligan wants to merge 2 commits intoCapSoftware:mainfrom
keathmilligan:macos-null-pointer-fix
Open

Fix null pointer reference on MacOS#174
keathmilligan wants to merge 2 commits intoCapSoftware:mainfrom
keathmilligan:macos-null-pointer-fix

Conversation

@keathmilligan
Copy link
Copy Markdown

@keathmilligan keathmilligan commented Aug 25, 2025

Fixes #173 null pointer reference when capturing a single window on MacOS.

Use ScreenCapturekit directly to get window dimensions.

Summary by CodeRabbit

  • New Features
    • None.
  • Bug Fixes
    • Improved accuracy of window scale and dimensions on macOS, reducing blurry or incorrectly sized captures.
    • Better handling across multiple displays and high‑DPI setups.
    • Added safe fallbacks to prevent failures when a window or display can’t be resolved.
  • Refactor
    • Switched macOS window detection and sizing to a more robust system for greater stability and compatibility.
  • Chores
    • No user-facing API changes.

Loading
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.

Null pointer reference on MacOS capturing single window

3 participants