TeamRizu / OutFox

The Bug Reporting Repository for OutFox LTS 0.4, Alpha V and Steam Early Access Builds
https://projectoutfox.com
Apache License 2.0
178 stars 3 forks source link

[FIXED][BUG] Wayland Support is broken on Linux #729

Open AstralPhnx opened 2 months ago

AstralPhnx commented 2 months ago

Please Select the game mode your feature request is about.

All Game Modes

Is your feature request related to a problem?

As stated in the title, some time needs to be spent developing proper Wayland support of some kind. Yes it can run under XWayland but this is far from ideal as it completely falls over when Wayland Fractional Scaling is involved making XWayland applications unable to see the full resolution of the monitor.

With X11 slowly on the way out, I'd say it's about time Wayland support is considered.

Describe the solution you'd like

Pretty much just proper Wayland session support that doesn't rely on XWayland. Afaik the Stepmania Project uses SDL2 to some extent and that DOES allow for spinning things up in a Wayland session seemingly but I have been unable to get this to work as of yet with the usual command switches like SDL_VIDEODRIVER=wayland. Presumably more work needs to be done for this to work out.

Describe alternatives you've considered

Running under XWayland does work but it's far from ideal and with X11 on the way out, a proper move to supporting native Wayland sessions should be high on the priority list I believe with regards to future proofing the project.

Additional context

No response

Scraticus commented 2 months ago

Will get on this asap, it is about time we made the system wayland compliant.

AstralPhnx commented 2 months ago

Will get on this asap, it is about time we made the system wayland compliant.

Hopefully with SDL it should make things a lot easier.

Scraticus commented 2 months ago

yes, i will need to remove all the ancient X11 calls in the engine and replace them with wayland aware code. we are different from mainline in this regard as we do not use a raw X11 window any longer

AstralPhnx commented 2 months ago

yes, i will need to remove all the ancient X11 calls in the engine and replace them with wayland aware code. we are different from mainline in this regard as we do not use a raw X11 window any longer

Sounds like it shouldn't be AS hard to get going then. The Linux userbase will much appreciate this

Scraticus commented 2 months ago

I have added the preliminary support overnight tonight, and will begin testing it shortly. it will be added to a prebuild on our discord server if you wish to join it to help the effort. The game is now Wayland and XWayland aware, and i've added a better version of the kmsdrm driver for headless operations. we can get some testing down and then it can be added to the next release.

Scraticus commented 2 months ago

This is now actioned. You won't need to use the "SDL_VideoDriver=Wayland" switch. We have made the game Wayland aware. We also fixed kmsdrm support at the same time.

Thanks for your bug report and for supporting the project.