Skip to content

Unable to start Wayland programs #929

Description

@atomicptr

It's currently not possible to launch Wayland programs through raddbg, I managed to reproduce this with this raylib example program

#include "raylib.h"

int main(void) {
  const int screenWidth = 800;
  const int screenHeight = 450;

  InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");

  SetTargetFPS(60);
  while (!WindowShouldClose()) {
    BeginDrawing();

    ClearBackground(RAYWHITE);

    DrawText("Congrats! You created your first window!", 190, 200, 20,
             LIGHTGRAY);

    EndDrawing();
  }

  CloseWindow();

  return 0;
}

when compiling this and adding it as a target no window will be spawned, the program itself however is running (at least according to ps), when I however start raddbg with GLFW_VIDEODRIVER=x11 raddbg aka enforcing that GLFW (which raylib uses) uses x11 instead of Wayland everything works fine. Setting the env variable in the target for some reason doesn't work though, this might however be a different issue.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions