-
Notifications
You must be signed in to change notification settings - Fork 555
8306121: Scene not rendered initially when changing scenes after fix for JDK-8296621 #1110
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
Conversation
Merge master
Merge from jfx
merge from jfx
Merge upstream
Merge from upstream
Update from master
Merge from upstream
Merge with main
Merge master
Merge master
Update from jfx
Pull from origin
Merge master
As it turns out, I was looking at your incremental diff and (mistakenly) thought that
Thanks. |
|
It seems Headless monocle was not focusing the window before, so this is why tests were passing before (focus was not being accounted). I've attached a simple
UPDATE: UPDATE2: |
|
I confirm that even restoring JDK-8296621, the tests were not getting focus. I did this by adding to And adding With this PR, focus messages are shown, without the PR or restoring JDK-8296621 they don't. Probably something to do with Monocle flow. |
|
@kevinrushforth Got it. Testing uses |
kevinrushforth
left a comment
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 for the explanation about why you had to change the tests.
The latest fix looks good. All my testing is green.
Running the new StartIconified manual test reveals two problems:
- On Windows there is a brief flash where the window is visible before it is iconified -- we should file a P4 bug
- On macOS 13 (not sure about 12) the Stage is not iconified at all -- this is tracked by JDK-8305675
modules/javafx.graphics/src/main/java/com/sun/glass/ui/gtk/GtkWindow.java
Outdated
Show resolved
Hide resolved
|
@jperedadnr This should now be ready for you to resume your review. |
When you do, can you confirm whether JDK-8304734 and JDK-8304476 are also fixed? If so, we can close them as a duplicate of JDK-8306121. |
|
I filed https://bugs.openjdk.org/browse/JDK-8310029 to track the brief flash on Windows platforms. |
jperedadnr
left a comment
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.
Looks good
Tested on macOS and Linux (with known issue on macOS), and Android, so indeed https://bugs.openjdk.org/browse/JDK-8304476 can be closed as duplicated.
I haven't tested Monocle/TestFX though.
I have minor comments only.
modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp
Outdated
Show resolved
Hide resolved
...rols/src/test/java/test/com/sun/javafx/scene/control/infrastructure/MouseEventFirerTest.java
Show resolved
Hide resolved
modules/javafx.controls/src/test/java/test/javafx/scene/control/ComboBoxTest.java
Show resolved
Hide resolved
| if (!isIconified()) { | ||
| peer.requestFocus(); | ||
| } |
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.
This works fine on Android.
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 for confirming. I just now closed JDK-8304476 as a duplicate of JDK-8306121.
|
@jperedadnr Did the changes requested in review. |
jperedadnr
left a comment
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.
Looks good to me!
kevinrushforth
left a comment
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.
Copyright year changes are incorrect.
...rols/src/test/java/test/com/sun/javafx/scene/control/infrastructure/MouseEventFirerTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.controls/src/test/java/test/javafx/scene/control/ComboBoxTest.java
Show resolved
Hide resolved
|
@tsayao 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 11 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 7eb9a1c.
Your commit was automatically rebased without conflicts. |
|
Thanks for fixing this issue. Does this fix also solve the Monocle/TestFX issue? |
|
It probably does fix It.
But we found out that focus was not working with StubToolkit because the
focus call was previously called only on QuantumToolkit.
I don't know about TestFx but since the below bug exists (about focus) it
probably doesn't use StubToolkit.
TestFX/TestFX#749
Em sex., 16 de jun. de 2023 12:53, Daniel Subelman ***@***.***>
escreveu:
… Thanks for fixing this issue. Does this fix also solve the Monocle/TestFX
issue?
—
Reply to this email directly, view it on GitHub
<#1110 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHKIFHUPZAF3FOCBDF5TAUDXLR6OHANCNFSM6AAAAAAXH2KJHY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
I think JDK-8304734 can be closed as a duplicate of this bug, but it would be helpful to confirm that it resolves the problem reported in TestFX/TestFX#749. |
I replicated the fix on #1054 on Linux.
Also fixes Monocle: Stage no longer gets focus after fix for JDK-8296621
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1110/head:pull/1110$ git checkout pull/1110Update a local copy of the PR:
$ git checkout pull/1110$ git pull https://git.openjdk.org/jfx.git pull/1110/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1110View PR using the GUI difftool:
$ git pr show -t 1110Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1110.diff
Webrev
Link to Webrev Comment