layout: Added sticky implementation for split windows
[src/agl-compositor.git] / src / ivi-compositor.h
index 1c1d678..5250dba 100644 (file)
@@ -242,6 +242,8 @@ struct pending_app {
 struct pending_app_tile {
        struct pending_app base;
        uint32_t orientation;
+       uint32_t width;
+       int32_t sticky;
 };
 
 struct ivi_desktop_surface {
@@ -294,6 +296,7 @@ struct ivi_surface {
        struct wl_list link;
        int focus_count;
        uint32_t orientation;
+       int32_t sticky;
 
        struct {
                enum ivi_surface_flags flags;
@@ -541,4 +544,9 @@ is_shell_surface_xwayland(struct ivi_surface *surf);
 void
 ivi_layout_reset_split_surfaces(struct ivi_compositor *ivi);
 
+void
+_ivi_set_shell_surface_split(struct ivi_surface *surface, struct ivi_output *output,
+                            uint32_t orientation, uint32_t width, int32_t sticky,
+                            bool to_activate);
+
 #endif