Cogl.wayland_renderer_set_event_dispatch_enabled

function wayland_renderer_set_event_dispatch_enabled(renderer: Cogl.Renderer, enable: Cogl.Bool): void {
    // Gjs wrapper for cogl_wayland_renderer_set_event_dispatch_enabled()
}
  

Sets whether Cogl should handle calling wl_display_dispatch() and wl_display_flush() as part of its main loop integration via Cogl.poll_renderer_get_info and Cogl.poll_renderer_dispatch. The default value is true. When it is enabled the application can register listeners for Wayland interfaces and the callbacks will be invoked during Cogl.poll_renderer_dispatch. If the application wants to integrate with its own code that is already handling reading from the Wayland display socket, it should disable this to avoid having competing code read from the socket.

Since 1.16

renderer

A Cogl.Renderer

enable

The new value