summaryrefslogtreecommitdiffstats
path: root/src/ivi-compositor.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-03 15:20:00 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-12 18:30:23 +0000
commit5ce0b5d5200f8d5e21e15981b0179fd429ee836d (patch)
tree97c485426498e7d9f918c11335fb87df180b8993 /src/ivi-compositor.h
parentab151e5d3d10f85901c0a9b689ef62e83c7dbc5e (diff)
layout, desktop: Implement the pop-up role
Temporally store the application details in a list of pending applications as to be used when creating the desktop surface. Store the output alongside the x and y values, useful in setting up the initial positional values of the window. Bug-AGL: SPEC-3269 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Icae57378ff405a8770c074a3e2fe1e04535302ef
Diffstat (limited to 'src/ivi-compositor.h')
-rw-r--r--src/ivi-compositor.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index cd7cbdd..75c5568 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -85,11 +85,13 @@ struct ivi_compositor {
struct ivi_policy *policy;
struct wl_list pending_surfaces;
+ struct wl_list popup_pending_apps;
struct weston_layer hidden;
struct weston_layer background;
struct weston_layer normal;
struct weston_layer panel;
+ struct weston_layer popup;
struct weston_layer fullscreen;
};
@@ -136,6 +138,15 @@ enum ivi_surface_role {
IVI_SURFACE_ROLE_DESKTOP,
IVI_SURFACE_ROLE_BACKGROUND,
IVI_SURFACE_ROLE_PANEL,
+ IVI_SURFACE_ROLE_POPUP,
+};
+
+struct pending_popup {
+ struct ivi_output *ioutput;
+ char *app_id;
+ int x; int y;
+
+ struct wl_list link; /** ivi_compositor::popup_pending_surfaces */
};
struct ivi_desktop_surface {
@@ -147,6 +158,12 @@ struct ivi_background_surface {
struct ivi_output *output;
};
+struct ivi_popup_surface {
+ struct ivi_output *output;
+ int x;
+ int y;
+};
+
struct ivi_panel_surface {
struct ivi_output *output;
enum agl_shell_edge edge;
@@ -177,6 +194,7 @@ struct ivi_surface {
struct ivi_desktop_surface desktop;
struct ivi_background_surface bg;
struct ivi_panel_surface panel;
+ struct ivi_popup_surface popup;
};
};
@@ -228,6 +246,15 @@ to_ivi_output(struct weston_output *o);
void
ivi_set_desktop_surface(struct ivi_surface *surface);
+/*
+ * removes the pending popup one
+ */
+bool
+ivi_check_pending_desktop_surface_popup(struct ivi_surface *surface);
+
+void
+ivi_set_desktop_surface_popup(struct ivi_surface *surface);
+
void
ivi_reflow_outputs(struct ivi_compositor *ivi);
@@ -257,4 +284,7 @@ ivi_layout_desktop_committed(struct ivi_surface *surf);
void
ivi_layout_panel_committed(struct ivi_surface *surface);
+void
+ivi_layout_popup_committed(struct ivi_surface *surface);
+
#endif