summaryrefslogtreecommitdiffstats
path: root/src/ivi-compositor.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-02-17 16:42:27 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-03-06 18:16:05 +0200
commita35a7f2e5cc20bd40ece91918e753c709e2ee10b (patch)
treec360bef05b5cd721c1529e9b60cc4468023d138a /src/ivi-compositor.h
parentdbba1adda7fd9aaaa46263d8c878132a523327e4 (diff)
protocol: Add agl-shell-desktop protocol
Protocol intented for use by regular XDG application which want to tell the compositor to activate another application. This mimics the activate_app request from agl-shell, and assumes the application is already started. Bug-AGL: SPEC-3252 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I1f7bd1d8d2f7d8f1eedf710aef1bf1046846f9be
Diffstat (limited to 'src/ivi-compositor.h')
-rw-r--r--src/ivi-compositor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index a01c617..8631477 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -38,6 +38,11 @@
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
+struct desktop_client {
+ struct wl_resource *resource;
+ struct wl_list link; /* ivi_compositor::desktop_clients */
+};
+
struct ivi_compositor {
struct weston_compositor *compositor;
struct weston_config *config;
@@ -62,6 +67,7 @@ struct ivi_compositor {
const struct weston_drm_output_api *drm_api;
struct wl_global *agl_shell;
+ struct wl_global *agl_shell_desktop;
struct {
int activate_apps_by_default; /* switches once xdg top level has been 'created' */
} quirks;
@@ -72,6 +78,8 @@ struct ivi_compositor {
bool ready;
} shell_client;
+ struct wl_list desktop_clients; /* desktop_client::link */
+
struct wl_list outputs; /* ivi_output.link */
struct wl_list surfaces; /* ivi_surface.link */