How to prevent OpenJDK 11 from changing the Window size due to some internal reason

Aleksei Ivanov alexey.ivanov at oracle.com
Mon Jan 8 17:24:27 UTC 2024


Hi Martin,

I'm afraid there's nothing I can add to the previous discussion in June 
2023 [1].

I can only repeat Phil's statement [2], “Wayland is not a supported 
platform for ANY version of JDK.”


As Kevin suggested [3], you can try builds of the Wakefield project [4] 
or discuss it on Wakefield mailing list, you can even contribute a fix.


At this time, “Wayland is not a supported platform for ANY version of JDK.”

-- 
Regards,
Alexey

[1] https://mail.openjdk.org/pipermail/client-libs-dev/2023-June/013155.html
[2] https://mail.openjdk.org/pipermail/client-libs-dev/2023-June/013312.html
[3] https://mail.openjdk.org/pipermail/client-libs-dev/2023-June/013137.html
[4] https://openjdk.org/projects/wakefield/

On 2024-01-05 17:33, Martin Petzold wrote:
> Dear all,
>
> most probably because of a bug in Weston implementation on Linux [1]: 
> if I detach and attach an HDMI head OR change via HDMI-CEC to standby 
> and back, my Java window is resized to 1x1 pixel automatically due to 
> some internal method. This is a serious bug to us. We have tested with 
> pure Weston application, and there was no such bug. Also we are using 
> XWayland because of Java. Currently we cannot backport that patch to 
> Weston 9 because of extensive changes in code.
>
> We tried to catch the event and resize back, but this was not stable. 
> Any other idea for a work-around?
>
> Is there any way to prevent OpenJDK 11 from resizing any window in 
> some internal method? I would like to have 100% control...
>
> [1] 
> https://gitlab.freedesktop.org/wayland/weston/-/commit/bcacd9ec5a924317416eabb65a6cd6767d5bfb94 
>
>
> Thanks,
>
> Martin
>



More information about the client-libs-dev mailing list