RFR: 8316419: [macos] Setting X/Y makes Stage maximization not work before show [v2]

Martin Fox duke at openjdk.org
Wed Nov 1 14:05:19 UTC 2023


On Tue, 31 Oct 2023 21:01:55 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> The test program MaximizedStage JDK-8255835 : very strange - the window appears to be maximized beyond the visible area, the OS tool bar is on top and the dock is visible. It is impossible to minimize or normalize or quit the app via its toolbar.

The window is borderless. It's difficult to see what's going on with the original test file so I added a new one to the JBS. MaximizedBorderStage adds a thin red border to the edge of the scene so you can verify that the JavaFX window doesn't go under the toolbar, the top edge of the window is flush with the bottom edge of the toolbar.

> SetXYAndMaximize JDK-8316419 works the same with or without the fix, the window appears maximized to fill the visible area (excl. the dock and the tool bar):

> The test program StartIconified JDK-8305675 works the same regardless of the fix: the window flashes, then immediately gets minimized. Is this expected? macOS 13.5.2

When I run these two test programs using the current JavaFX master they both fail (the windows don't iconify or maximize) but they work correctly with this fix. This is on my Mac running 13.6 but the OS version shouldn't matter.

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

PR Comment: https://git.openjdk.org/jfx/pull/1258#issuecomment-1789012239


More information about the openjfx-dev mailing list