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

ZWidget: Add Wayland support and ZWIDGET_DISPLAY_BACKEND environment variable #113

Merged
merged 11 commits into from
Jun 17, 2024

Conversation

LupertEverett
Copy link
Contributor

@LupertEverett LupertEverett commented Jun 17, 2024

This should be good enough to get a Wayland backend running with ZWidget, which will allow us to remove the SDL2 backend from it eventually.

Note that this utilizes the waylandpp library, which provides C++ bindings for various wayland protocols.

Known bugs:

  • Launcher window doesn't close itself after launching SurrealEngine for some reason.
  • SurrealEditor doesn't run at all.

Due to the second point, keyboard events, popup windows and clipboard stuff aren't tested.

There is also a new ZWIDGET_DISPLAY_BACKEND environment variable added with this PR, that allows one to override the default backend order on Linux (Wayland -> X11 -> SDL2). It is used as follows:

ZWIDGET_DISPLAY_BACKEND=(Wayland/X11/SDL2) ./ZWidgetApp

@dpjudas dpjudas merged commit dcefe41 into dpjudas:master Jun 17, 2024
4 checks passed
@LupertEverett LupertEverett deleted the zwidget_wayland_support branch June 17, 2024 17:07
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

Successfully merging this pull request may close these issues.

2 participants