You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attempt to support Wayland has been made over at PixelGuys/Cubyz-libs#4. After some discussion, we have agreed that a different approach than that which was taken by that PR was needed. I'd like to suggest discussing this here.
So far, we have looked at these options:
Using a custom build script, compile wayland-scanner and use then invoke it to generate code. Use that to build GLFW with wayland support. Vendor required xkbcommon headers.
This is the approach the PR took and it was deemed to be too much code.
Use some upstream Zig library that packages GLFW.
This introduces an extra dependency.
Use wayland-scanner from the system. This would require it to be installed in a future CI system, and for anyone who wants to manually build Cubyz-libs. We would still have to come up with a solution for how we handle xkbcommon headers.
I am aware of these projects, but Quantum previously stated on the PR linked above regarding this:
I'm not really sold on this approach though, since it does mean adding another middleman which could be a security vulnerability.
So I'm not certain if it would be preferred to use libraries like these or "reimplement" them instead. My approach was essentially the latter on my previous PR, but that ended up adding too much unwanted bloat to the repository, so I'm not entirely sure how to approach this.
Then make a hard-fork, they look simple enough to do that.
The problem is Zig - someone's gotta maintain it before 1.0 release, it's not just drop & forget - same goes for anything we can come up with.
XWayland unfortunately does not support multiple monitors with different scales set, which causes all X11 applications to run at 1.7x resolution on my 1440p monitor(then scaled down to the correct size by kwin) because my 2160p monitor is set to 170% scale.
Discussion of the issue: https://discord.com/channels/443805812390100992/485498631156138005/1561978214690197564
This is Cubyz running at 2448p on my 1440p monitor via XWayland
The same in Minecraft via XWayland
Minecraft at the proper resolution through forcing native Wayland
This is caused because I have a third monitor set to 170% scale, which affects all X11 apps globally
Another post I found discussing the issue https://bugs.kde.org/show_bug.cgi?id=502390
It's a legacy issue with X11 that can't really be resolved unfortunately
Activity
LordMZTE commentedon Nov 30, 2025
An attempt to support Wayland has been made over at PixelGuys/Cubyz-libs#4. After some discussion, we have agreed that a different approach than that which was taken by that PR was needed. I'd like to suggest discussing this here.
So far, we have looked at these options:
Using a custom build script, compile wayland-scanner and use then invoke it to generate code. Use that to build GLFW with wayland support. Vendor required xkbcommon headers.IntegratedQuantum commentedon Nov 30, 2025
Can we not also use the ones installed on the CI system?
OutOfContainment commentedon Dec 16, 2025
https://codeberg.org/ifreund/zig-xkbcommon
https://codeberg.org/ifreund/zig-wayland
LordMZTE commentedon Dec 16, 2025
I am aware of these projects, but Quantum previously stated on the PR linked above regarding this:
So I'm not certain if it would be preferred to use libraries like these or "reimplement" them instead. My approach was essentially the latter on my previous PR, but that ended up adding too much unwanted bloat to the repository, so I'm not entirely sure how to approach this.
OutOfContainment commentedon Dec 16, 2025
Then make a hard-fork, they look simple enough to do that.
The problem is Zig - someone's gotta maintain it before 1.0 release, it's not just drop & forget - same goes for anything we can come up with.
Bloxxel64 commentedon Dec 16, 2025
wayland does work though, I'm using KDE Plasma in wayland and it works like a charm.
MemerGamer commentedon Feb 17, 2026
I can confirm that Wayland works on KDE Plasma
H41ogen commentedon Mar 23, 2026
Same here. Zero Issues.
ProNoob135 commentedon Oct 20, 2026
XWayland unfortunately does not support multiple monitors with different scales set, which causes all X11 applications to run at 1.7x resolution on my 1440p monitor(then scaled down to the correct size by kwin) because my 2160p monitor is set to 170% scale.
Discussion of the issue: https://discord.com/channels/443805812390100992/485498631156138005/1561978214690197564
ProNoob135 commentedon Oct 20, 2026
This is Cubyz running at 2448p on my 1440p monitor via XWayland




The same in Minecraft via XWayland
Minecraft at the proper resolution through forcing native Wayland
This is caused because I have a third monitor set to 170% scale, which affects all X11 apps globally
Another post I found discussing the issue https://bugs.kde.org/show_bug.cgi?id=502390
It's a legacy issue with X11 that can't really be resolved unfortunately