RFR: 8232812: [MacOS] Double click title bar does not restore window size

Kevin Rushforth kcr at openjdk.java.net
Thu Oct 14 14:48:49 UTC 2021


On Tue, 5 Oct 2021 20:36:37 GMT, Martin Fox <duke at openjdk.java.net> wrote:

> The test case for JDK-8160241 creates a window in a zoomed state (as defined by macOS). When the OS later goes to unzoom the window it will try to shrink it down to 1 point wide. This was entered as JDK-8163137 but the fix for that bug inadvertently disabled unzooming altogether. This PR fixes 8163137 in a slightly different way.
> 
> Access to the zoom/unzoom feature has changed with newer versions of macOS. To reproduce this you have to change `System Preferences > Dock & Menu Bar > Double-click a window's title bar` to `zoom`. Then use double-clicks in the title bar to test the feature. The green button in the title bar no longer has anything to do with zoom/unzoom.

The proposed change looks good. I confirm that it fixes this bug without reintroducing JDK-8160241.

-------------

Marked as reviewed by kcr (Lead).

PR: https://git.openjdk.java.net/jfx/pull/639


More information about the openjfx-dev mailing list