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
fix: add missing set_wants_to_be_visible(true)
to NativeWindowMac::ShowInactive()
#40546
fix: add missing set_wants_to_be_visible(true)
to NativeWindowMac::ShowInactive()
#40546
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
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.
@tzahola would you be willing to add a test for this?
set_wants_to_be_visible(true)
to NativeWindowMac::ShowInactive()
I'll try! |
I'm afraid I can't really do this, because I can't even run the tests on the current
Which then causes
Any idea why this is the case? |
Ok, it seems that in bfa58df the Node headers target was moved from |
@tzahola are you using https://github.com/electron/build-tools? it makes everything much easier. |
@codebytere added test: cf73ec9 |
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.
Thanks!
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "26-x-y", please check out #40657 |
I have automatically backported this PR to "27-x-y", please check out #40658 |
I have automatically backported this PR to "28-x-y", please check out #40659 |
…:ShowInactive()` (electron#40546) * fix: add missing set_wants_to_be_visible(true) to NativeWindowMac::ShowInactive() * add test
Description of Change
PR #40062 introduced a
bool wants_to_be_visible_
flag toNativeWindowMac
, but it wasn't set inNativeWindowMac::ShowInactive()
, only inNativeWindowMac::Show()
. This meant that the parent-child relationship wouldn't be established for any window that was opened while the app wasn't the active one (typically this can occur in apps with always-visible floating overlay windows).CC @codebytere
Checklist
npm test
passesRelease Notes
Notes: fixed child window opening in non-active macOS apps