vsgExamples icon indicating copy to clipboard operation
vsgExamples copied to clipboard

Wayland support

Open michaelfranzl opened this issue 11 months ago • 2 comments

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!

michaelfranzl avatar Jul 30 '23 15:07 michaelfranzl

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.

robertosfield avatar Jul 30 '23 16:07 robertosfield

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

VasanthBalguri avatar Sep 23 '23 19:09 VasanthBalguri