Skip to content

Wayland support #236

Open
Open

Description

@michaelfranzl

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!

Activity

  1. robertosfield commented on Jul 30, 2023

    @robertosfield
    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.

  2. VasanthBalguri commented on Sep 23, 2023

    @VasanthBalguri

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions