protocol: agl-shell-desktop: Send notification for application state change
[src/agl-compositor.git] / src / ivi-compositor.h
index 75c5568..91b5340 100644 (file)
 
 #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 */
 };
 
@@ -127,6 +130,7 @@ struct ivi_output {
        struct weston_geometry area;
 
        struct ivi_surface *active;
+       struct ivi_surface *previous_active;
 
        /* Temporary: only used during configuration */
        size_t add_len;
@@ -269,6 +273,9 @@ ivi_layout_set_position(struct ivi_surface *surface,
                        int32_t x, int32_t y,
                        int32_t width, int32_t height);
 
+struct ivi_surface *
+ivi_find_app(struct ivi_compositor *ivi, const char *app_id);
+
 void
 ivi_layout_commit(struct ivi_compositor *ivi);
 
@@ -287,4 +294,7 @@ ivi_layout_panel_committed(struct ivi_surface *surface);
 void
 ivi_layout_popup_committed(struct ivi_surface *surface);
 
+void
+ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id);
+
 #endif