caprica / vlcj

Java framework for the vlc media player
http://www.capricasoftware.co.uk/projects/vlcj
1.1k stars 260 forks source link

Transparent Overlay on Pi 5 with Java 22 gets shifted upwards... #1223

Closed FolsomMike closed 3 months ago

FolsomMike commented 3 months ago

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.