X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fivi-compositor.h;h=8631477d1875426e354c730d5ac2584af4d7a00d;hb=a35a7f2e5cc20bd40ece91918e753c709e2ee10b;hp=3d7bd250c5e0d929f015c72cf20519cf6dc729ba;hpb=ab2e660c891df7188f2803a88d172627d66294fe;p=src%2Fagl-compositor.git diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index 3d7bd25..8631477 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -29,15 +29,20 @@ #include #include "config.h" -#include -#include -#include -#include +#include +#include +#include +#include #include "agl-shell-server-protocol.h" #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 */ @@ -103,6 +111,12 @@ struct ivi_output { struct ivi_surface *left; struct ivi_surface *right; + /* for the black surface */ + struct fullscreen_view { + struct ivi_surface *fs; + struct wl_listener fs_destroy; + } fullscreen_view; + struct wl_listener output_destroy; /* @@ -193,6 +207,9 @@ ivi_agl_systemd_notify(struct ivi_compositor *ivi) int ivi_shell_init(struct ivi_compositor *ivi); +void +ivi_shell_init_black_fs(struct ivi_compositor *ivi); + int ivi_shell_create_global(struct ivi_compositor *ivi);