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

feat: Add BrowserWindow option to hide window in Mission Control (macOS) #36390

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Nov 18, 2022

Backport of #36092

See that PR for details.

Notes:

  • Adds new setHiddenInMissionControl API to allow developers to opt out of mission control on macOS.

@trop trop bot added 22-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Nov 18, 2022
Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

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

Approved on behalf of @electron/wg-releases

…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>
@jkleinsc jkleinsc force-pushed the trop/22-x-y-bp-feat-add-browserwindow-option-to-hide-window-in-mission-control-macos--1668738797369 branch from 41f0c5d to 10a8c18 Compare January 25, 2023 16:18
@@ -192,6 +192,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
macOS. Default is `false`.
* `skipTaskbar` boolean (optional) _macOS_ _Windows_ - Whether to show the window in taskbar.
Default is `false`.
* `hiddenInMissionControl` boolean (optional) _macOS_ - Whether window should be hidden when the user toggles into mission control.
Copy link
Member

Choose a reason for hiding this comment

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

Default value is not mentioned here.

Copy link
Member

Choose a reason for hiding this comment

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

The original PR did not have it, probably better to be fixed in separate PR.

@codebytere codebytere merged commit ef164e7 into 22-x-y Jan 26, 2023
@codebytere codebytere deleted the trop/22-x-y-bp-feat-add-browserwindow-option-to-hide-window-in-mission-control-macos--1668738797369 branch January 26, 2023 10:25
@release-clerk
Copy link

release-clerk bot commented Jan 26, 2023

Release Notes Persisted

  • Adds new setHiddenInMissionControl API to allow developers to opt out of mission control on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
22-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants