Set the WM_CLASS explicitly so it doesn't depend on the version

Fixes #148.
This commit is contained in:
Fingercomp 2025-01-22 23:47:05 +03:00
parent 300c5dfe5b
commit a898e04dc3
No known key found for this signature in database
GPG Key ID: BBC71CEE45D86E37

View File

@ -37,6 +37,7 @@ object OcelotDesktop
{
System.setProperty("awt.useSystemAAFontSettings", "on")
System.setProperty("swing.aatext", "true")
System.setProperty("LWJGL_WM_CLASS", "Ocelot Desktop")
// Required to make all subsequent swing components look "native"
try UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName)