Cogl.wayland_renderer_set_foreign_display

function wayland_renderer_set_foreign_display(renderer: Cogl.Renderer, display: void): void {
    // Gjs wrapper for cogl_wayland_renderer_set_foreign_display()
}
  

Allows you to explicitly control what Wayland display you want Cogl to work with instead of leaving Cogl to automatically connect to a wayland compositor.

Since 1.8

renderer

A Cogl.Renderer

display

A Wayland display