Create a second Wayland display on Chromium OS

Sergey Lebedev swan911sele at gmail.com
Fri Nov 8 06:02:05 UTC 2024


Hi,

I'm trying to create a second Wayland display on Chromium OS(wayland-1):
#include <wayland-server.h>
int main(int argc, char *argv[]) {
  struct wl_display *display = wl_display_create();
  const char *socket = wl_display_add_socket_auto(display);
  wl_display_run(display);
  return 0;
}

But I can't see second Wayland display.
I'm trying to launch test client
XDG_RUNTIME_DIR=/run/chrome WAYLAND_DISPLAY=wayland-1 testwaylandclient
But I can't see test client window.
If I'm trying to launch client with WAYLAND_DISPLAY=wayland-0 work good, I
see test client window

Maybe I need to run a second display with the Wayland compositor

Serg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20241108/a115d788/attachment.htm>


More information about the wayland-devel mailing list