Adding this issue + work-around to contribute to the wiki...
On Pi 4, the overlay position is fine but on Pi 5 it gets shifted upwards instead of fitting over the video.
Both are using OpenJDK 22.
I solved the problem by passing null as the owner when creating the overlay awt.Window. There is some difference between the windowing systems, which is arguably bad on the part of Linux/Pi.
Adding this issue + work-around to contribute to the wiki...
On Pi 4, the overlay position is fine but on Pi 5 it gets shifted upwards instead of fitting over the video.
Both are using OpenJDK 22.
I solved the problem by passing null as the owner when creating the overlay awt.Window. There is some difference between the windowing systems, which is arguably bad on the part of Linux/Pi.