raylib icon indicating copy to clipboard operation
raylib copied to clipboard

[build] Consier set GLFW_LINUX_ENABLE_WAYLAND to 1 by default

Open zhaob1n opened this issue 7 months ago • 2 comments

After #5504 is solved, there seems not to be any wayland-specific issues. I guess it's time to bring wayland back.

The default settings matter because linux distros usually compile the package with the default settings. If wayland is not enabled at all, users cannot switch to it, while they just need an environment override to use X11 if they want..

zhaob1n avatar Apr 28 '26 17:04 zhaob1n

@Peter0x44 Afair, you proposed enabling both systems, do you think it can be enabled by default again?

raysan5 avatar Apr 28 '26 22:04 raysan5

I think it's OK. Perhaps it's worth patching the internal GLFW not to prefer wayland if it's available? (env var override is fine, and distros don't use internal glfw)

There are some APIs in raylib that cannot be implemented under wayland for systemic reasons. And I can't say I fully trust wayland to work correctly in most circumstances yet.

Peter0x44 avatar Apr 29 '26 06:04 Peter0x44