wayland-compositor: Don't use Wayland types in public API
The definition of wl_display differs between Wayland clients and servers, and it's unsafe to include both wayland-client.h and wayland-server.h at the same time. Fudge around this by making the compositor public API use void * rather than struct wl_display *. Signed-off-by: Daniel Stone <daniel@fooishbar.org> https://bugzilla.gnome.org/show_bug.cgi?id=692851
This commit is contained in:
parent
3e479a3326
commit
b37b9d917a
@ -1322,7 +1322,7 @@ clutter_backend_get_cogl_context (ClutterBackend *backend)
|
||||
* Stability: unstable
|
||||
*/
|
||||
void
|
||||
clutter_wayland_set_compositor_display (struct wl_display *display)
|
||||
clutter_wayland_set_compositor_display (void *display)
|
||||
{
|
||||
if (_clutter_context_is_initialized ())
|
||||
{
|
||||
|
@ -35,13 +35,10 @@
|
||||
#ifndef __CLUTTER_WAYLAND_COMPOSITOR_H__
|
||||
#define __CLUTTER_WAYLAND_COMPOSITOR_H__
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <clutter/wayland/clutter-wayland-surface.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void
|
||||
clutter_wayland_set_compositor_display (struct wl_display *display);
|
||||
clutter_wayland_set_compositor_display (void *display);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user