JDK-8366009 : Stage does not always enter full screen when shown with fullScreen set to true on Ubuntu 24.04
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • Submitted: 2025-08-22
  • Updated: 2025-08-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
To reproduce, run the following on Ubuntu 24.04 using either X.org or Wayland as the display server:

java -cp apps/toys/Hello/dist/Hello.jar hello.HelloFullscreen

The Stage should come up in full screen mode. It works on Ubuntu 22.04.
Comments
[~tsayao] If the HelloFullscreen test program in our repo works reliably with your fix, then this can be closed as a duplicate. Thanks.
22-08-2025

I did work on making it consistent on JDK-8354943 for fullscreen, maximized and iconified before and after show, for XWayland and Xorg.
22-08-2025

It looks like it's a timing problem (which makes it even more likely that it could be addressed by the fix for JDK-8354943). I ran it several times in a row on Wayland and it came up twice in full screen and the rest as an ordinary window. Of the times it came up as a normal window, a few of the times it was shown at (0,0) and the rest it was centered.
22-08-2025

I originally thought this was Wayland-specific, but it fails on X.org as well.
22-08-2025

[~tsayao] I haven't checked whether your in-progress fix for JDK-8354943 addresses this, but it seems at least somewhat related. Can you take a look?
22-08-2025