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. ------------- Commit messages: - Typo - A Stage should allow simultaneous iconified and maximized states Changes: https://git.openjdk.org/jfx/pull/1777/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1777&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8354480 Stats: 110 lines in 3 files changed: 68 ins; 14 del; 28 mod Patch: https://git.openjdk.org/jfx/pull/1777.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1777/head:pull/1777 PR: https://git.openjdk.org/jfx/pull/1777