wayland: Add API for disabling the event dispatching
This allows the integration of Clutter with another library, like GTK+, that is dispatching the events itself. This is implemented by calling into the cogl_wayland_renderer_set_event_dispatch_enabled() and since that function must be called on the newly created renderer the newly added clutter_wayland_disable_event_retrieval must be called before clutter_init() https://bugzilla.gnome.org/show_bug.cgi?id=704279
This commit is contained in:
@ -52,5 +52,8 @@ struct wl_surface *clutter_wayland_stage_get_wl_surface (ClutterStage *stage);
|
||||
CLUTTER_AVAILABLE_IN_1_16
|
||||
void clutter_wayland_set_display (struct wl_display *display);
|
||||
|
||||
CLUTTER_AVAILABLE_IN_1_16
|
||||
void clutter_wayland_disable_event_retrieval (void);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* __CLUTTER_WAYLAND_H__ */
|
||||
|
Reference in New Issue
Block a user