Skip to content

feat: add BrowserWindow.isOccluded() - #38982

Merged
codebytere merged 1 commit into
mainfrom
fix-is-visible-check
Feb 6, 2024
Merged

codebytere merged 1 commit into
mainfrom
fix-is-visible-check

Conversation

@codebytere

@codebytere codebytere commented Jul 4, 2023 •

Copy link
Copy Markdown
Member

Description of Change

Closes #38955.

We've historically not been consistent in our implementations of BrowserWindow.isVisible() and similar methods how occlusion affects return values. I believe instead it might be more effective to add in a separate method for apps to check occlusion status.

This also removes the occlusion check from the macOS implementation of BrowserWindow.isVisible(), which was broken and not being properly accounted for.

Checklist

Release Notes

Notes: Added a new method BrowserWindow.isOccluded() to allow apps to check occlusion status.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/24-x-y PR should also be added to the "24-x-y" branch. target/25-x-y PR should also be added to the "25-x-y" branch. target/26-x-y PR should also be added to the "26-x-y" branch. labels Jul 4, 2023
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 4, 2023
@codebytere
codebytere force-pushed the fix-is-visible-check branch from 9745609 to 75bbfb1 Compare July 4, 2023 09:04
@codebytere
codebytere marked this pull request as draft July 4, 2023 20:36
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 5, 2023
@codebytere
codebytere force-pushed the fix-is-visible-check branch from 75bbfb1 to b7a56ee Compare July 5, 2023 09:25
@codebytere codebytere changed the title fix: BrowserWindow.isVisible() with occlusion on macOS feat: add BrowserWindow.isOccluded() Jul 5, 2023
@codebytere
codebytere force-pushed the fix-is-visible-check branch from b7a56ee to 5a29680 Compare July 5, 2023 10:46
@codebytere
codebytere force-pushed the fix-is-visible-check branch from 5a29680 to 759f1e8 Compare July 24, 2023 11:02
@codebytere
codebytere marked this pull request as ready for review July 24, 2023 12:32
@codebytere
codebytere requested a review from miniak July 24, 2023 12:33
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 24, 2023
@codebytere codebytere added semver/minor backwards-compatible functionality and removed semver/patch backwards-compatible bug fixes labels Jul 24, 2023
@codebytere
codebytere requested review from MarshallOfSound, VerteDinde, miniak and zcbenz and removed request for VerteDinde, jkleinsc, miniak and zcbenz July 25, 2023 12:23

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@codebytere
codebytere merged commit 768ece6 into main Feb 6, 2024
@codebytere
codebytere deleted the fix-is-visible-check branch February 6, 2024 10:30
@release-clerk

release-clerk Bot commented Feb 6, 2024

Copy link
Copy Markdown

Release Notes Persisted

Added a new method BrowserWindow.isOccluded() to allow apps to check occlusion status.

@trop

trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "26-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/26-x-y PR should also be added to the "26-x-y" branch. label Feb 6, 2024
@trop

trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "27-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/26-x-y and removed target/25-x-y PR should also be added to the "25-x-y" branch. labels Feb 6, 2024
@trop

trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "28-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/25-x-y needs-manual-bp/27-x-y needs-manual-bp/28-x-y and removed target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Feb 6, 2024
@trop

trop Bot commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "29-x-y", please check out #41249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-review/approved ✅ semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: BrowserWindow.isVisible() doesn't take into account occlusion state

6 participants