wayland_renderer_set_event_dispatch_enabled


Description:

public void wayland_renderer_set_event_dispatch_enabled (Renderer renderer, Bool enable)

Sets whether Cogl should handle calling wl_display_dispatch and wl_display_flush as part of its main loop integration via poll_renderer_get_info and 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 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.

Parameters:

renderer

A Renderer

enable

The new value


Namespace: Cogl
Package: doc