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

[Linux] Wayland support #3

Open
Sterophonick opened this issue Jul 24, 2024 · 5 comments
Open

[Linux] Wayland support #3

Sterophonick opened this issue Jul 24, 2024 · 5 comments

Comments

@Sterophonick
Copy link

Sterophonick commented Jul 24, 2024

When running on Wayland, the ending where Niko breaks through the player's game window is broken, with Niko kinda just getting stuck on the bottom of the window before disappearing. The shaking is fine, just Niko is broken. Not sure if this can be fixed, but it should at least be documented.

By default the game runs in XWayland, idk if there's anything that is forcing X11 but it do be like that

@Sterophonick
Copy link
Author

testing with SDL_VIDEODRIVER=wayland, we get much of the same behavior, except there is no window shaking.

@melody-rs
Copy link

melody-rs commented Dec 16, 2024

Likely not easily doable because Wayland does not allow toplevel windows to position themselves.
When I asked them about this issue a long time ago the response was "no, it's not possible, and why would you need to do such a thing"
Even with XWayland trying to set window position flat out crashes (at least on my system)

I suspect it MIGHT be doable if it was possible to interface with the compositor without going through Wayland

@Sterophonick
Copy link
Author

As if I thought Wayland couldn't get any crappier

@melody-rs
Copy link

Wayland has some nice features over X11 (more modern, less legacy junk, etc) but it sucks for usecases Wayland didn't think of/decide to cover

I thiiiink the reasoning for not letting windows position themselves is a security thing? Wayland restricts other similar things (like modifying the clipboard directly)

@melody-rs
Copy link

melody-rs commented Dec 16, 2024

I'll see if I can look into interfacing with the compositor on https://github.com/Astrabit-ST/osfm-mkxp-z
kwin seems to have a public API, I'll see if gnome and others do as well

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