-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
feat: Add BrowserWindow option to hide window in Mission Control (macOS) #36092
feat: Add BrowserWindow option to hide window in Mission Control (macOS) #36092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love that there are two names for this boolean, "ignoreMissionControl" and "ignoredByMissionControl". Can we settle on one or the other?
The goal was to differentiate the boolean set at construction and the value at runtime. "Should this window ignore mission control?" But I hear what you're saying. I'll swap it all for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe hiddenInMissionControl
would be more easily understood? It also closer aligns with how Apple's docs describe the behavior.
The window floats in Spaces and hides in Mission Control.
Works for me. Hoping to get my dev env all set up again to make sure the
rename didn't bork something.
…On Mon, Oct 24, 2022 at 11:06 PM Samuel Maddock ***@***.***> wrote:
***@***.**** commented on this pull request.
Maybe hiddenInMissionControl would be more easily understood? It also
closer aligns with how Apple's docs describe the behavior.
The window floats in Spaces and hides in Mission Control.
https://developer.apple.com/documentation/appkit/nswindowcollectionbehavior/nswindowcollectionbehaviortransient
—
Reply to this email directly, view it on GitHub
<#36092 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5UD7TOV2NJN2MDD7KCBVDWE5FEHANCNFSM6AAAAAARKHMEEY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
7cf290f
to
05f63c9
Compare
* There are many circumstances when app developers may want to hide their windows from mission control. E.g., full screen overlays, small helper windows, dialogs, etc. * This PR adds the functionality, docs, and tests.
05f63c9
to
ebbcc4e
Compare
ebbcc4e
to
3c3fec8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
Release Notes Persisted
|
/trop run backport-to 22-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
I have automatically backported this PR to "22-x-y", please check out #36390 |
…OS) (#36092) * feat: Add BrowserWindow option to ignore Mission Control (macOS) * There are many circumstances when app developers may want to hide their windows from mission control. E.g., full screen overlays, small helper windows, dialogs, etc. * This PR adds the functionality, docs, and tests. * chore:Rename variables * Update shell/browser/native_window_mac.h Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Brad Carter <16466430+carterbs@users.noreply.github.com>
…OS) (#36092) * feat: Add BrowserWindow option to ignore Mission Control (macOS) * There are many circumstances when app developers may want to hide their windows from mission control. E.g., full screen overlays, small helper windows, dialogs, etc. * This PR adds the functionality, docs, and tests. * chore:Rename variables * Update shell/browser/native_window_mac.h Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Brad Carter <16466430+carterbs@users.noreply.github.com>
/trop run backport-to 23-x-y |
The backport process for this PR has been manually initiated - sending your PR to |
I was unable to backport this PR to "23-x-y" cleanly; |
…OS) (electron#36092) * feat: Add BrowserWindow option to ignore Mission Control (macOS) * There are many circumstances when app developers may want to hide their windows from mission control. E.g., full screen overlays, small helper windows, dialogs, etc. * This PR adds the functionality, docs, and tests. * chore:Rename variables * Update shell/browser/native_window_mac.h Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Description of Change
hiddenInMissionControl
constructor optionisHiddenInMissionControl
bw method.setHiddenInMissionControl
bw method.Checklist
npm test
passesRelease Notes
Notes:
setHiddenInMissionControl
API to allow developers to opt out of mission control on macOS.