Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland support #22

Open
zenzoa opened this issue Apr 17, 2023 · 0 comments
Open

Wayland support #22

zenzoa opened this issue Apr 17, 2023 · 0 comments

Comments

@zenzoa
Copy link

zenzoa commented Apr 17, 2023

Would it be possible for this project to support Wayland compositors, like Hyprland or Sway? I tried running it anyway (in Hyprland) in case xwayland would get it working but I get these errors:

java.lang.IllegalAccessException: class com.sun.jna.platform.WindowUtils$X11WindowUtils cannot access class sun.awt.X11GraphicsConfig (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @50a638b5
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:420)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:709)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.jna.platform.WindowUtils$X11WindowUtils.getVisualID(WindowUtils.java:1178)
	at com.sun.jna.platform.WindowUtils$X11WindowUtils.getAlphaCompatibleGraphicsConfiguration(WindowUtils.java:1199)
	at com.sun.jna.platform.WindowUtils$X11WindowUtils.setWindowTransparent(WindowUtils.java:1406)
	at com.sun.jna.platform.WindowUtils.setWindowTransparent(WindowUtils.java:1549)
	at com.group_finity.mascot.x11.X11TranslucentWindow.setVisible(Unknown Source)
	at com.group_finity.mascot.Mascot.apply(Unknown Source)
	at com.group_finity.mascot.Manager.tick(Unknown Source)
	at com.group_finity.mascot.Manager.access$000(Unknown Source)
	at com.group_finity.mascot.Manager$2.run(Unknown Source)
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: libjawt.so: cannot open shared object file: No such file or directory
	at com.sun.jna.Native.getWindowHandle0(Native Method)
	at com.sun.jna.Native$AWT.getComponentID(Native.java:1766)
	at com.sun.jna.Native$AWT.getWindowID(Native.java:1742)
	at com.sun.jna.Native.getWindowID(Native.java:242)
	at com.group_finity.mascot.x11.X11TranslucentWindow.updateX11(Unknown Source)
	at com.group_finity.mascot.x11.X11TranslucentWindow.updateImage(Unknown Source)
	at com.group_finity.mascot.Mascot.apply(Unknown Source)
	at com.group_finity.mascot.Manager.tick(Unknown Source)
	at com.group_finity.mascot.Manager.access$000(Unknown Source)
	at com.group_finity.mascot.Manager$2.run(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant