Giter Site home page Giter Site logo

Comments (4)

00-Evan avatar 00-Evan commented on June 11, 2024

Wayland support is determined by the code libraries Shattered uses, mainly libGDX. I have no control over the windowing system directly. If you want libGDX to support Wayland, I suggest opening and issue on their github page: https://github.com/libgdx/libgdx

from shattered-pixel-dungeon.

TadaCZE avatar TadaCZE commented on June 11, 2024

Well... There is a solution, but you're not going to like it.

You can start SPD with a special Java argument which makes LWJGL use another version of GLFW specifically patched so that it disables some error checks. It was originally made to allow Minecraft to run under Wayland but it works here too.

If you want to test that it works do this:

  1. Have Arch Linux installed on your PC
  2. Install glfw-wayland-minecraft-libdecoration from the AUR
  3. Run java -Dorg.lwjgl.glfw.libname=/usr/lib/libglfw.so -jar shatteredpd.jar

And it works! The only thing that is broken is the icon on the window border, which I think nobody honestly cares about.

In practice, it means you would have to compile your own GLFW and package it with the linux release and provide a startup script which enables this option.

from shattered-pixel-dungeon.

TadaCZE avatar TadaCZE commented on June 11, 2024

But yes, that is the hacky solution.

A better one would be for GDX to support Wayland directly, of course, but I believe that there's enough benefits to warrant doing this. And doing this is trivially simple anyways.

from shattered-pixel-dungeon.

00-Evan avatar 00-Evan commented on June 11, 2024

Yeah sadly that's not something I'd consider doing. I do plan to keep updating Shattered's depencies though, so if/when libGDX supports Wayland then Shattered will support it fairly soon after.

from shattered-pixel-dungeon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.