GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — 8233678: [macos 10.15] System menu bar does not work initially on macOS Catalina by kevinrushforth · Pull Request #361 · openjdk/jfx Conversation
|
|
👋 Welcome back kcr! A progress list of the required criteria for merging this PR into |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@kevinrushforth |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I note that this does not seem to be a problem for Swing apps. AWT uses the Java Runtime Support (JRS) framework to initialize the application and menubar. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note to testers: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… and non-taskbar apps)
|
I tested the patch, and it works for me (MacOS Catalina, 10.15.7) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for checking. I'll remove the debug print statements, turn off verbose logging, and send it out for review. I would appreciate a thorough review of the code. Given the way JavaFX initializes the macOS application and sets the system menu bar, this seems like the least intrusive and least risky fix, but it would be nice if we can find a better fix that isn't overly complicated or risky. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Webrevs
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For some reason, the GitHub actions test results weren't added by the Skara bot. I filed SKARA-839 to track this. You can click here to see the results of the GitHub action for the most recent commit I pushed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I added a few comments. In general, the approach looks ok to me. My comments are about edge cases, for which I'm not sure how we need to handle them. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I tested the test program provided in the JBS on macOS 10.15.4. This PR fixes the reported issue.
The side effect of brief flash when the application is launched is undesirable, but livable given the important issue this PR fixes.
I spotted a typo in code comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@kevinrushforth This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/integrate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@kevinrushforth Since your change was applied there have been 3 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit e7dbdfc. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Mailing list message from Bruce Johnson on openjfx-dev: It would be useful, at least to me, to see a brief comment in this email thread about why this approach (which results in the application flashing) is necessary. Why does JavaFX require this approach, or is there an alternative, but more complex approach that could ultimately be used in later releases. I?d just like to be able to look back in the email thread when I (or the users of my software) see the flash to understand why it's there. Bruce |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't yet know whether there is an alternative that would allow the menubar to work without deactivating the app, but I filed a follow-up bug to track this: JDK-8257835: Brief flash in terminal window when launching FX app on macOS It seems like it might be possible to fix this, since AWT initialization doesn't run into this. I note that AWT uses an Apple-provided "JavaRuntime Support" (JRS) Framework. We would need to see whether there is something else possible using public macOS APIs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Mailing list message from Tom Schindl on openjfx-dev: Hi Kevin, I today saw this tweet by Alex Blewitt [1] in my twitter feed and a Tom [1] https://twitter.com/alblue/status/1350877893979746305 Am 07.12.20 um 16:58 schrieb Bruce Johnson:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@tomsontom Thanks for letting me know. He reached to me directly as well, so I'll plan to add the information to the follow-on bug, JDK-8257835. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
BTW there were observations that the setActivationPolicy call needs to be inside the callback as well, at least on 10.15. I've updated the bug on the StackOverflow question, and the Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=552063 has a fix about to go in with the suggested change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.