diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-04-06 22:42:51 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-05-12 18:30:29 +0000 |
commit | ef3d1990c498e6d9b1a24531b751688cac287d28 (patch) | |
tree | d13dbb7a6485997846bf32a38e24ad734975f000 | |
parent | 5ce0b5d5200f8d5e21e15981b0179fd429ee836d (diff) |
shell: Store the ivi compositor in the desktop_client
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
-rw-r--r-- | src/ivi-compositor.h | 3 | ||||
-rw-r--r-- | src/shell.c | 1 |
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; |