Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Wayland support #1869

Open
Twig6943 opened this issue Dec 3, 2024 · 4 comments
Open

[Feature request] Wayland support #1869

Twig6943 opened this issue Dec 3, 2024 · 4 comments

Comments

@Twig6943
Copy link

Twig6943 commented Dec 3, 2024

image

This can't be a duplicate, anyways I think a wayland backend would be a great addition cuz X is on its deathbed and should be avoided if possible

(Duplicate of HaxeFlixel/flixel#3302)

@Twig6943
Copy link
Author

Twig6943 commented Dec 3, 2024

@NotHyper-474
Copy link

NotHyper-474 commented Jan 21, 2025

I've managed to get Wayland working on my Lime fork, tested on Arch Linux. The only catch is that I didn't include the generated Wayland protocol files, so you'll need to cd to project/lib/sdl2 and compile it with CMake, then copy them from wayland-generated-protocols to project/lib/custom/sdl/include/wayland-protocols then finally rebuild Lime.

Oh, SDL2 won't use wayland by default so you need to change SDL_VIDEODRIVER.

@Twig6943
Copy link
Author

I've managed to get Wayland working on my Lime fork, tested on Arch Linux. The only catch is that I didn't include the generated Wayland protocol files, so you'll need to cd to project/lib/sdl2 and compile it with CMake, then copy them from wayland-generated-protocols to project/lib/custom/sdl/include/wayland-protocols then finally rebuild Lime.

Oh, SDL2 won't use wayland by default so you need to change SDL_VIDEODRIVER.

Yea yea figured that out myself. Also no there's need to recompile. Its possible to use 'LD_PRELOAD' + 'SDL_VIDEODRIVER' to get wayland working on already compiled games

@Twig6943
Copy link
Author

I've managed to get Wayland working on my Lime fork, tested on Arch Linux. The only catch is that I didn't include the generated Wayland protocol files, so you'll need to cd to project/lib/sdl2 and compile it with CMake, then copy them from wayland-generated-protocols to project/lib/custom/sdl/include/wayland-protocols then finally rebuild Lime.
Oh, SDL2 won't use wayland by default so you need to change SDL_VIDEODRIVER.

Yea yea figured that out myself. Also no there's need to recompile. Its possible to use 'LD_PRELOAD' + 'SDL_VIDEODRIVER' to get wayland working on already compiled games

https://raw.githubusercontent.com/Twig6943/Wayland-Gaming/refs/heads/main/Games/Screenshots/FridayNightFunkin.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants