Skip to content

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented May 19, 2025

this was already present on macOS; use in NativeWindowViews too

Description of Change

Part 4 in a short series of PRs to reduce public use of NativeWindow::widget() so that it can be made into a protected method. See Part 1 for discussion of why I want to do that.


This PR adds NativeWindow::IsActive() on all platforms, when previously it existed only on macOS builds. WebContents::ReadyToCommitNavigation() can use this method instead of calling NativeWindow::widget()->IsActive() on Windows and Linux.

Checklist

Release Notes

Notes: none.

this was already present on macOS; use in NativeWindowViews too
@ckerr ckerr added semver/patch backwards-compatible bug fixes no-backport labels May 19, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label May 19, 2025
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label May 20, 2025
@jkleinsc jkleinsc merged commit 211faed into main May 20, 2025
71 checks passed
@jkleinsc jkleinsc deleted the refactor/add-NativeWindow.IsActive() branch May 20, 2025 15:08
@release-clerk
Copy link

release-clerk bot commented May 20, 2025

No Release Notes

codebytere pushed a commit that referenced this pull request Aug 8, 2025
this was already present on macOS; use in NativeWindowViews too
codebytere pushed a commit that referenced this pull request Aug 8, 2025
this was already present on macOS; use in NativeWindowViews too
codebytere added a commit that referenced this pull request Aug 8, 2025
…8012)

* fix: window accentColor should adhere to native window behavior

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* fix: address review feedback

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* chore: remove duplicate UpdateWindowAccentColor call in ctor

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* refactor: add NativeWindow::IsActive() (#47148)

this was already present on macOS; use in NativeWindowViews too

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
codebytere added a commit that referenced this pull request Aug 9, 2025
…8011)

* fix: window accentColor should adhere to native window behavior

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* fix: address review feedback

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* chore: remove duplicate UpdateWindowAccentColor call in ctor

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>

* refactor: add NativeWindow::IsActive() (#47148)

this was already present on macOS; use in NativeWindowViews too

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants