summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ivi-compositor.h3
-rw-r--r--src/shell.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 75c5568..bdd91ff 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -36,8 +36,11 @@
#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 */
};
diff --git a/src/shell.c b/src/shell.c
index a9be929..cf1214a 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -660,6 +660,7 @@ bind_agl_shell_desktop(struct wl_client *client,
resource = wl_resource_create(client, &agl_shell_desktop_interface,
version, id);
+ dclient->ivi = ivi;
if (!resource) {
wl_client_post_no_memory(client);
return;