Allows to retrieve the ivi compositor without passing addtional resource
in the request.
Bug-AGL: SPEC-3269
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I515e8133a8bdc6400932d3c08a112982546c3ff9
#include "agl-shell-server-protocol.h"
+struct ivi_compositor;
+
struct desktop_client {
struct wl_resource *resource;
+ struct ivi_compositor *ivi;
struct wl_list link; /* ivi_compositor::desktop_clients */
};
resource = wl_resource_create(client, &agl_shell_desktop_interface,
version, id);
+ dclient->ivi = ivi;
if (!resource) {
wl_client_post_no_memory(client);
return;