Skip to content

8251241: macOS: iconify property doesn't change after minimize when resizable is false #280

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

Closed
wants to merge 3 commits into from

Conversation

FlorianKirmaier
Copy link
Member

@FlorianKirmaier FlorianKirmaier commented Aug 13, 2020

ticket: https://bugs.openjdk.java.net/browse/JDK-8251241

This small change fixing the minimize for mac.
Changes are property registered.
Calling setIconize(true) no longer resets to false.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8251241: macOS: iconify property doesn't change after minimize when resizable is false

Reviewers

  • Kevin Rushforth (kcr - Reviewer)
  • Ambarish Rapte (arapte - Reviewer)

Download

$ git fetch https://git.openjdk.java.net/jfx pull/280/head:pull/280
$ git checkout pull/280

Fixing miniaturization for mac.
@bridgekeeper
Copy link

bridgekeeper bot commented Aug 13, 2020

👋 Welcome back fkirmaier! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request.

@openjdk openjdk bot added the rfr Ready for review label Aug 13, 2020
@mlbridge
Copy link

mlbridge bot commented Aug 13, 2020

Webrevs

@FlorianKirmaier FlorianKirmaier changed the title JDK-8251241 fixing mac minimize 8251241: fixing mac minimize Aug 13, 2020
@kevinrushforth
Copy link
Member

/reviewers 2

@openjdk
Copy link

openjdk bot commented Aug 13, 2020

@kevinrushforth
The number of required reviews for this PR is now set to 2 (with at least 1 of role reviewers).

@kevinrushforth
Copy link
Member

JDK-8251241: macOS: iconify property doesn't change after minimize when resizable is false ⚠️ Title mismatch between PR and JBS.

Can you change the title to match the JBS title?

@kevinrushforth kevinrushforth self-requested a review August 13, 2020 12:50
@FlorianKirmaier FlorianKirmaier changed the title 8251241: fixing mac minimize 8251241: macOS: iconify property doesn't change after minimize when resizable is false Aug 13, 2020
@FlorianKirmaier
Copy link
Member Author

Done! I've changed the title.

@dlemmermann
Copy link

dlemmermann commented Aug 13, 2020

Thank you Florian!!! :-)

Copy link
Member

@kevinrushforth kevinrushforth left a comment

Choose a reason for hiding this comment

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

This looks good based on my initial testing, including a modified version of the test program that doesn't temporarily set resizable to true. Nice.

I want to do some additional testing.

I left one minor comment on the code formatting inline.

Added missing spaces to match the coding style.
@FlorianKirmaier
Copy link
Member Author

Thank you for the very quick feedback!
In the application, the fix was developed for, it also seems to fix all issues related to iconified.

@kevinrushforth
Copy link
Member

You may have seen my comment in JBS: This PR also fixes JDK-8249202, which I discovered while testing JDK-8248490. This means that I already have an automated test that can be modified to test this. I just need to add a couple things to it (an assertion check for the iconified property, a check to ensure that we can deiconify the stage, and then add a mode to run it with a non-resizable stage). Once I verify it, I can send you the patch for the test, if that's OK with you?

@kevinrushforth
Copy link
Member

Here is the patch for IconifyTest.java :

icontest.patch.txt

I verified that it catches the bugs, in that the modified test fails without the fix and passes with the fix.

Can you apply the patch to your repo and push a new commit with the updated test?

applied tests from kevinrushforth
@FlorianKirmaier
Copy link
Member Author

I've added your patch for the unit-test!
Nice to see it fixes more bugs. : )
Don't want to know how many hours were spent working around this bug by all the people around the world.
Compared to this, the fix was developed really quickly.

Copy link
Member

@kevinrushforth kevinrushforth left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for fixing this long-standing bug.

I ran a full set of unit test, including the newly modified one. All looks good.

Can we get one more reviewer on this?

@kevinrushforth kevinrushforth requested a review from arapte August 18, 2020 13:27
@kevinrushforth
Copy link
Member

@arapte can you be a second reviewer?

@openjdk
Copy link

openjdk bot commented Aug 19, 2020

@FlorianKirmaier This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type /integrate in a new comment to proceed. After integration, the commit message will be:

8251241: macOS: iconify property doesn't change after minimize when resizable is false

Reviewed-by: kcr, arapte
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /issue command.

Since the source branch of this PR was last updated there have been 6 commits pushed to the master branch:

  • b25ffc7: 8251352: Many javafx.base classes have implicit no-arg constructors
  • 2aed5ad: 8240969: WebView does not allow to load style sheet in modularized applications
  • 1c54e61: 8241840: Memoryleak: Closed focused Stages are not collected with Monocle.
  • f50d218: Merge
  • 208d828: 8228570: Add various documentation clarifications
  • 7a8708b: 8250799: NumberStringConverter and its subclasses are missing documentation for all their constructors

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge master into your branch, and then specify the current head hash when integrating, like this: /integrate b25ffc7ada679683dca74ba420dd77ade5ef8372.

As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinrushforth, @arapte) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Ready to be integrated label Aug 19, 2020
@FlorianKirmaier
Copy link
Member Author

/integrate

@openjdk openjdk bot added the sponsor Ready to sponsor label Aug 19, 2020
@openjdk
Copy link

openjdk bot commented Aug 19, 2020

@FlorianKirmaier
Your change (at version 7c9584f) is now ready to be sponsored by a Committer.

@kevinrushforth
Copy link
Member

/sponsor

@openjdk openjdk bot closed this Aug 19, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed sponsor Ready to sponsor ready Ready to be integrated rfr Ready for review labels Aug 19, 2020
@openjdk
Copy link

openjdk bot commented Aug 19, 2020

@kevinrushforth @FlorianKirmaier The following commits have been pushed to master since your change was applied:

  • b25ffc7: 8251352: Many javafx.base classes have implicit no-arg constructors
  • 2aed5ad: 8240969: WebView does not allow to load style sheet in modularized applications
  • 1c54e61: 8241840: Memoryleak: Closed focused Stages are not collected with Monocle.
  • f50d218: Merge
  • 208d828: 8228570: Add various documentation clarifications
  • 7a8708b: 8250799: NumberStringConverter and its subclasses are missing documentation for all their constructors

Your commit was automatically rebased without conflicts.

Pushed as commit 85821ca.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants