RFR: 8354480: A Stage should allow simultaneous iconified and maximized states [v2]
Thiago Milczarek Sayao
tsayao at openjdk.org
Sun Apr 13 18:07:32 UTC 2025
On Sun, 13 Apr 2025 18:01:08 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
>> On some platforms (at least on Ubuntu 24.04 with GNOME and Windows 11), windows can remain maximized even when they are iconified (minimized). When the window is de-iconified (restored), it retains its maximized state.
>>
>> The documentation in `Stage.java` regarding window states seems to align with this behavior. However, the code currently treats the `WindowEvent.RESTORE` event as both an unminimize (de-iconify) and an unmaximize.
>>
>> Tests pass on Ubuntu 24.04 XWayland (with one unrelated screenCapture failure). But I would not rely on that since it needes specific tests.
>>
>> This is not ready to integrate as it may break platform-specific code/behavior.
>
> Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision:
>
> Missed one change
I'm doing the robot tests here (work in progress):
[StageStateTest](https://github.com/openjdk/jfx-sandbox/blob/glass_gtk_bug_squashing/tests/system/src/test/java/test/robot/javafx/stage/StageStatesTest.java)
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1777#issuecomment-2800056720
More information about the openjfx-dev
mailing list