-
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
fix: preserve macos child window level #44155
base: main
Are you sure you want to change the base?
Conversation
💖 Thanks for opening this pull request! 💖 Semantic PR titlesWe 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:
Commit signingThis repo enforces commit signatures for all incoming PRs. PR tipsThings 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.
@JoelEinbinder could you try to add a test for this? Beyond that LGTM!
I can write a test except I don't know where a test for this would live. I tried to look for examples but there was no test in the previous patches that restored the parents level (af4cf1e) and the one that added panels (21ef850). |
@joel I'd say this should live in browser-window spec - you can just add a new |
@JoelEinbinder If you rebase this and sign your commit, I can try to add a test myself |
My bad I got several things going this morning I’ll run it shortly. Thanks again.
Get Outlook.vip for iOS<https://aka.ms/o0ukef>
…________________________________
From: Shelley Vohr ***@***.***>
Sent: Wednesday, October 30, 2024 5:42:12 AM
To: electron/electron ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [electron/electron] fix: preserve macos child window level (PR #44155)
@JoelEinbinder<https://github.com/JoelEinbinder> If you rebase this and sign your commit, I can try to add a test myself
—
Reply to this email directly, view it on GitHub<#44155 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6YMX4CBYVG5F7X2WSMNPKDZ6CZYJAVCNFSM6AAAAABPTRDEL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBWGUYTOMJZGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sorry I've been far away from my computer that compiles Chromium. I'll be back in about a week and take another look at this. |
Description of Change
There is some code in Chromium that checks the window level to determine if an unfocused window can receive mousemove events.
When Electron sets a window's parent, the level of both the parent and child are reset to NSWindowNormal. There is already some code to restore the parent's level. So I added some code to restore the child's level as well.
If the current behavior is the intended behavior, then an alternative patch could add a new window property that overrides the level check in Chromium. But this seemed simpler to me.
I couldn't find any tests for this area of the code. Happy to let someone with more Electron knowledge take over from here if much more is needed to get this landed.
Fixes #44150
Release Notes
Notes: Fixed MacOS windows losing their alwaysOnTop status when they were assigned a parent window.