Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for client bounds without NonClient Area on Windows #187

Conversation

Pavou
Copy link
Contributor

@Pavou Pavou commented Aug 6, 2024

Add support for activeWindow() to return clientBounds which is the bounds of the client area of the window.

The client area of the window does not include Nonclient Area such as the title bar, menu bar, or window frame.

This is useful if the client position and size is used to add overlay windows and dialogs on top of the activeWindow.

The change is only for Windows platform and only the relevant typescript definitions and tests were updated.

Sources/windows/main.cc Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@Pavou
Copy link
Contributor Author

Pavou commented Aug 7, 2024

Thanks for the feedback. Updated.

@Pavou Pavou requested a review from sindresorhus August 7, 2024 20:09
index.d.ts Outdated Show resolved Hide resolved
@Pavou Pavou requested a review from sindresorhus August 9, 2024 20:25
@sindresorhus sindresorhus merged commit e9f34ee into sindresorhus:main Aug 9, 2024
1 check 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.

2 participants