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

Make GameWindow and NativeWindow support wayland glfw #1612

Open
NogginBops opened this issue Jul 14, 2023 · 1 comment
Open

Make GameWindow and NativeWindow support wayland glfw #1612

NogginBops opened this issue Jul 14, 2023 · 1 comment

Comments

@NogginBops
Copy link
Member

Description

In #1608 wayland glfw binary loading was added using an opt-in switch.
But the currently implementations of GameWindow and NativeWindow doesn't work when running on wayland as wayland is much more restrictive on what functions are supported and whatnot (getting cursor position, etc).

So I think we should do something to make it easier to use these classes when using wayland would be good.

@NogginBops
Copy link
Member Author

The issues is actually the default error handler not discerning between different types of errors and instead always throws an exception.
The simplest way to support wayland is to make a custom glfw error handler that doesn't throw an exception when a GLFW_FEATURE_UNAVAILABLE error is raised.

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

No branches or pull requests

1 participant