Cogl.wayland_onscreen_set_foreign_surface

function wayland_onscreen_set_foreign_surface(onscreen: Cogl.Onscreen, surface: void): void {
    // Gjs wrapper for cogl_wayland_onscreen_set_foreign_surface()
}
  

Allows you to explicitly notify Cogl of an existing Wayland surface to use, which prevents Cogl from allocating a surface and shell surface for the onscreen. An allocated surface will not be destroyed when the onscreen is freed.

This function must be called before onscreen is allocated.

Since 1.16

onscreen

An unallocated framebuffer. surface A Wayland surface to associate with the onscreen.

surface