Skip to content

diff code to enable sdl windows on pure wayland  #62

@limbo127

Description

@limbo127

without that, mvisor sdl ui always using Xwayland

--- tmp/mvisor/main.cc 2024-10-28 12:01:10.007219778 +0100
+++ main.cc 2024-10-28 11:42:39.140473441 +0100
@@ -222,7 +222,8 @@
}

 const char* displayVar = std::getenv("DISPLAY");
  • if (displayVar == nullptr) {
  • const char* waylandVar = std::getenv("WAYLAND_DISPLAY");
  • if (displayVar == nullptr && waylandVar == nullptr) {
    if (vnc_port == 0) {
    vnc_port = 5901;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions