On Thu, Aug 01, 2024 at 05:31:45AM GMT, Sebastiaan Couwenberg wrote: > On 7/31/24 11:47 PM, Ceppo wrote: > > 1. the VM uses Gnome and my physical machine doesn't, > > That's where you should looks for the problem. > > Chances are good Java apps only work correctly in common DEs like Gnome and > KDE.
I think I understood the issue and found a solution. It looks like many Java applcations don't work properly on a non-reparenting window manager like the one I use, but they do if you pretend to be using a reparenting one. The Arch Wiki suggests to set the _JAVA_AWT_WM_NONREPARENTING environment variable to 1 if using JRE 8, or AWT_TOOLKIT=MToolkit for a later version - but only the first one works for me, despite using JRE 17. Alternatively, wmname [2] may be used to pretend to be using a supported window manager [3]. I do not know how bad workarounds these are, though. [1]: <https://wiki.archlinux.org/title/Java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing> [2]: <https://tools.suckless.org/x/wmname/> [3]: <https://wiki.archlinux.org/title/Java#Impersonate_another_window_manager> -- Ceppo
signature.asc
Description: PGP signature