Skip to content

Support Wayland #358

In progress
In progress

Description

@archbirdplus

I suppose we might be able to just build both X11 and Wayland GLFW into a single build for all linux.

Activity

  1. added
    enhancement
    contributor friendly
    on May 17, 2024
  2. LordMZTE commented on Nov 30, 2025

    @LordMZTE

    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.
    • Any other ideas?
  3. IntegratedQuantum commented on Nov 30, 2025

    @IntegratedQuantum
    Member

    We would still have to come up with a solution for how we handle xkbcommon headers.

    Can we not also use the ones installed on the CI system?

  4. LordMZTE commented on Dec 16, 2025

    @LordMZTE

    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.

  5. OutOfContainment commented on Dec 16, 2025

    @OutOfContainment

    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.

  6. Bloxxel64 commented on Dec 16, 2025

    @Bloxxel64

    wayland does work though, I'm using KDE Plasma in wayland and it works like a charm.

  7. MemerGamer commented on Feb 17, 2026

    @MemerGamer

    I can confirm that Wayland works on KDE Plasma

  8. H41ogen commented on Mar 23, 2026

    @H41ogen
    Contributor

    Same here. Zero Issues.

  9. added
    OS: Linux (mainstream)
    on Sep 3, 2026
  10. ProNoob135 commented on Oct 20, 2026

    @ProNoob135

    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

  11. ProNoob135 commented on Oct 20, 2026

    @ProNoob135

    This is Cubyz running at 2448p on my 1440p monitor via XWayland
    Image
    The same in Minecraft via XWayland
    Image
    Minecraft at the proper resolution through forcing native Wayland
    Image
    This is caused because I have a third monitor set to 170% scale, which affects all X11 apps globally
    Image
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: Linux (mainstream)contributor friendlyengineenhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions