Why do you need Wayland support ? #4174
Replies: 3 comments 1 reply
-
Wayland and X11 are very different and Wayland is NOT backwards compatible as X11 is not backwards to it. Most Linux users will use something like Some users may want to target Wayland specifically and raylib offers this choice to the developer. |
Beta Was this translation helpful? Give feedback.
-
As much as I'm not a fan of Wayland as it is now (I speak as more of an artist, Cintiq support is a regression compared to the x11 driver), I do think there is too much of a push for it and I don't see x11/xwayland being around forever and probably that is close to happening compared to other technology that is in the same boat, limping along with compatibility layers. It is certainly not perfect with xwayland. I see far more artifacting and just in general slow response times with some programs/games. |
Beta Was this translation helpful? Give feedback.
-
Hello,
We're currently trying to fix some bugs in #4151 on every GLFW desktop platforms, which include Wayland.
So far we made progresses with MS Windows, Linux+X11, and MacOS.
However, the Linux+Wayland is another story, because Wayland does not allow to know or set the position of a window.
The consequence is that it breaks everything that relies on these data, including some basic functions like
GetCurrentMonitor()
.So, i'm wondering, why do you need Wayland support for exactly ?
I'm asking, because if i understood correctly, Wayland offers an X11 backward compatibility extension (at least on Ubuntu).
So, you compile once for X11, and your binary can run on every X11 or Wayland Linuxes.
So why do you need to compile Raylib with
GLFW_LINUX_ENABLE_X11=FALSE
andGLFW_LINUX_ENABLE_WAYLAND=TRUE
??Is there a non-niche use case scenario that i'm not aware of where Wayland must absolutely work without the X11 compatibility extension ?
Beta Was this translation helpful? Give feedback.
All reactions