X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fivi-compositor.h;h=68cbbdfd0ab687f20d900a2b52f5b5677983d352;hb=ffd00ab3a05351bac2124e5eba8a66f20a3b62da;hp=65e06adca286704805aa853f5ab66a5f84ab8a6c;hpb=aa4ba5d283d641da25722af7a966c31d61a9686b;p=src%2Fagl-compositor.git diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index 65e06ad..68cbbdf 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -27,6 +27,7 @@ #define IVI_COMPOSITOR_H #include +#include "config.h" #include #include @@ -68,18 +69,17 @@ struct ivi_compositor { } shell_client; struct wl_list outputs; /* ivi_output.link */ - struct wl_list surfaces; /* ivi_desktop_surface.link */ + struct wl_list surfaces; /* ivi_surface.link */ struct weston_desktop *desktop; struct wl_list pending_surfaces; + struct weston_layer hidden; struct weston_layer background; struct weston_layer normal; struct weston_layer panel; struct weston_layer fullscreen; - - struct wl_list shell_clients; /* ivi_shell_client.link */ }; struct ivi_surface; @@ -107,8 +107,7 @@ struct ivi_output { */ struct weston_geometry area; - //int32_t width; - //int32_t height; + struct ivi_surface *active; /* Temporary: only used during configuration */ size_t add_len; @@ -123,18 +122,16 @@ enum ivi_surface_role { }; struct ivi_desktop_surface { - struct weston_view *view; + struct ivi_output *pending_output; }; struct ivi_background_surface { struct ivi_output *output; - struct weston_view *view; }; struct ivi_panel_surface { struct ivi_output *output; enum agl_shell_edge edge; - struct weston_view *view; }; enum ivi_surface_flags { @@ -146,6 +143,7 @@ enum ivi_surface_flags { struct ivi_surface { struct ivi_compositor *ivi; struct weston_desktop_surface *dsurface; + struct weston_view *view; struct wl_list link; @@ -155,8 +153,6 @@ struct ivi_surface { int32_t width, height; } pending; - struct weston_geometry old_geom; - enum ivi_surface_role role; union { struct ivi_desktop_surface desktop; @@ -179,6 +175,16 @@ struct ivi_shell_client { struct ivi_compositor * to_ivi_compositor(struct weston_compositor *ec); +#ifdef HAVE_SYSTEMD +int +ivi_agl_systemd_notify(struct ivi_compositor *ivi); +#else +static int +ivi_agl_systemd_notify(struct ivi_compositor *ivi) +{ +} +#endif + int ivi_shell_init(struct ivi_compositor *ivi); @@ -217,4 +223,13 @@ ivi_layout_set_position(struct ivi_surface *surface, void ivi_layout_commit(struct ivi_compositor *ivi); +void +ivi_layout_init(struct ivi_compositor *ivi, struct ivi_output *output); + +void +ivi_layout_activate(struct ivi_output *output, const char *app_id); + +void +ivi_layout_desktop_committed(struct ivi_surface *surf); + #endif