Comments (4)
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.
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:
- Have Arch Linux installed on your PC
- Install
glfw-wayland-minecraft-libdecoration
from the AUR - 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.
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.
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)
- Desc of Transfusion HOT 1
- make "picked up potion of experience" statement highlighted like upgrade scrolls and strength potions HOT 1
- suggestion: rogue with silent steps 2 makes it very easy to mine 40 gold in any troll quest(crystal/geomancer) HOT 1
- remove curse cancelation rare case HOT 1
- v2.3.0 The order in which the knockback effect of spike and elastic take effect is not fixed HOT 4
- Weapon ability of stone gauntlet was forgetten HOT 1
- How about allowing players to independently enable/disable trinkets bonuses? HOT 1
- What happened? HOT 1
- Empowering Meal and Strengthening Meal HOT 4
- Duelist Monk can Dash onto Enemies HOT 1
- Swarm intelligence not working in 2.4.0-BETA-3 HOT 8
- Magical Catalyst spawns in the toxic gas room, replacing the gold supposed to be in the chest. HOT 1
- Eye of Newt does not allow auto targeting of detected enemies HOT 1
- Pylon activates after killing DM-300? HOT 4
- v2.3.0, wear crown will not reserve harden on armor HOT 1
- Sleeping enemies can only be woken by proximity to their target, even if another ally is closer. HOT 2
- (v2.4.0-RC-2) Turns until hourglass charge use: -0 HOT 2
- alchemy book and number of liquid metal received HOT 1
- Crystal mimics are still too easy to detect, even with the tooth HOT 2
- Ascension slow effect does not trigger when that stage is reached HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shattered-pixel-dungeon.