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

Wayland support #236

Open
michaelfranzl opened this issue Jul 30, 2023 · 2 comments
Open

Wayland support #236

michaelfranzl opened this issue Jul 30, 2023 · 2 comments

Comments

@michaelfranzl
Copy link

Running vsgimgui_example, for example, runs into an exception:

[Exception] Failed to created Window, unable able to establish xcb connection.

Most likely the reason is that I'm already on Wayland (iow., not using X11). My window manager is Sway, in case this matters. Wayland adoption is slowly but surely increasing on Linux desktops.

xcb is a required compilation dependency of VSG.

Is or will it be possible to run the VSG examples when on Wayland?

Thanks!

@robertosfield
Copy link
Collaborator

I would like to see a vsg::Wayland_Window.cpp to compliment the existing vsg::Xcb_Window, creating this would be the best way to enable Wayland support.

I don't think it would require too much work to implement, but I am not position to implement this myself in the near term as I have lots of other tasks to complete first. Members of the community are welcome to pitch in.

Another approach might be to disable the built-in Windowing support within the VSG build and use vsgSDL to create windows. This would be as general purpose of implementing Wayland support in the VSG itself but could enable quick tests of this.

@VasanthBalguri
Copy link

As a workaround you can install xwayland, it worked for me.

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

3 participants