input: Migrate ivi_seat to ivi_compositor header
[src/agl-compositor.git] / src / ivi-compositor.h
index 424f126..fdf2bcb 100644 (file)
@@ -267,6 +267,11 @@ struct ivi_surface {
        bool mapped;
        bool advertised_on_launch;
        bool checked_pending;
+       enum {
+               NORMAL,
+               RESIZING,
+               FULLSCREEN,
+       } state;
 
        enum ivi_surface_role role;
        union {
@@ -284,6 +289,19 @@ struct ivi_surface {
        struct wl_signal signal_advertise_app;
 };
 
+struct ivi_shell_seat {
+       struct weston_seat *seat;
+       struct weston_surface *focused_surface;
+
+       bool hide_cursor;
+       bool new_caps_sent;
+
+       struct wl_listener seat_destroy_listener;
+       struct wl_listener caps_changed_listener;
+       struct wl_listener keyboard_focus_listener;
+       struct wl_listener pointer_focus_listener;
+};
+
 struct ivi_shell_client {
        struct wl_list link;
        char *command;
@@ -423,10 +441,16 @@ agl_shell_desktop_advertise_application_id(struct ivi_compositor *ivi,
 void
 ivi_destroy_waltham_destroy(struct ivi_surface *surface);
 
-bool
-ivi_check_pending_surface(struct ivi_surface *surface);
+void
+ivi_check_pending_surface_desktop(struct ivi_surface *surface,
+                                 enum ivi_surface_role *role);
 
+struct ivi_output *
+ivi_layout_find_bg_output(struct ivi_compositor *ivi);
 void
 ivi_compositor_destroy_pending_surfaces(struct ivi_compositor *ivi);
 
+void
+ivi_shell_finalize(struct ivi_compositor *ivi);
+
 #endif