diff options
author | Rui Matos <tiagomatos@gmail.com> | 2015-01-27 18:21:47 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2015-01-30 16:05:41 +0100 |
commit | b9640c091f96cef0ad991785297a9290435464ca (patch) | |
tree | 3da0e26ce54471a20dc594ce160ccd84d1176ee8 /cogl/winsys/cogl-winsys-egl-wayland.c | |
parent | c36e31401d1e8efe657e667d825d41ffb7b9067e (diff) | |
download | cogl-b9640c091f96cef0ad991785297a9290435464ca.tar.gz |
wayland-winsys: Provide a wl_registry.global_remove callback
Otherwise libwayland-client will abort() when we get that event.
https://bugzilla.gnome.org/show_bug.cgi?id=743594
Diffstat (limited to 'cogl/winsys/cogl-winsys-egl-wayland.c')
-rw-r--r-- | cogl/winsys/cogl-winsys-egl-wayland.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c index 93a84519..2e220528 100644 --- a/cogl/winsys/cogl-winsys-egl-wayland.c +++ b/cogl/winsys/cogl-winsys-egl-wayland.c @@ -115,6 +115,14 @@ registry_handle_global_cb (void *data, } static void +registry_handle_global_remove_cb (void *data, + struct wl_registry *registry, + uint32_t name) +{ + /* Nothing to do for now */ +} + +static void _cogl_winsys_renderer_disconnect (CoglRenderer *renderer) { CoglRendererEGL *egl_renderer = renderer->winsys; @@ -137,6 +145,7 @@ _cogl_winsys_renderer_disconnect (CoglRenderer *renderer) static const struct wl_registry_listener registry_listener = { registry_handle_global_cb, + registry_handle_global_remove_cb }; static int64_t |