HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
562 stars 44 forks source link

Linux Wayland support #55

Open tonsky opened 3 years ago

tonsky commented 3 years ago

Assembled from https://twitter.com/nikitonsky/status/1417154031470927876

jakeisnt commented 1 year ago

I'd love to spearhead this if this is still desired! 😁

tonsky commented 1 year ago

It is! It would be awesome. Let me know what you need to get started

jakeisnt commented 1 year ago

Sure! Just wondering how we should set this up in the repository - I'm thinking:

Does this sound reasonable?

tonsky commented 1 year ago

should it be xorg or x11? I think we use x11 sometimes in the code base, do you think it should be changed? or better stick with x11, as we already have it?

re: CMake, the question I’m more interested in is, should we build two different runtime libraries or a single one? If two, would we be able to determine at runtime which one to load?

Also, not sure if we need separate build for cmake, since it’s only for build machine. We could require both X11 and Wayland dev dependencies to exist at the same time. Up to you on this one

jakeisnt commented 1 year ago

We can just check at runtime whether (1) wayland dependencies are available to dynamically link with and (2) whether a wayland server is present and fall back to X if either of those fail

tonsky commented 1 year ago

Sounds like a plan!

TheDrawingCoder-Gamer commented 9 months ago

I want to flag some issues for anyone considering implementing wayland

tonsky commented 9 months ago

Would be very cool to support it natively! Thanks for all the work