summaryrefslogtreecommitdiffstats
path: root/src/ivi-compositor.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-06-11 16:21:37 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-06-15 20:23:38 +0300
commit7854caaca193dbc68c7384f21233a1637ab0382e (patch)
tree770900b219ef9d0d3ac5b603c75600099f5a759d /src/ivi-compositor.h
parent40d739400f4aeaaeb24440cc76fbf1d673323aa8 (diff)
shell: Pass the bounding box values to the pop-up surface
Necessary in order to make use options passed in with the protocol. Bug-AGL: SPEC-3419 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I0a2b973526572db18349642782082906544830a9
Diffstat (limited to 'src/ivi-compositor.h')
-rw-r--r--src/ivi-compositor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 53e09a3..7b5c18f 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -155,10 +155,16 @@ enum ivi_surface_role {
IVI_SURFACE_ROLE_REMOTE,
};
+struct ivi_bounding_box {
+ int x; int y;
+ int width; int height;
+};
+
struct pending_popup {
struct ivi_output *ioutput;
char *app_id;
int x; int y;
+ struct ivi_bounding_box bb;
struct wl_list link; /** ivi_compositor::popup_pending_surfaces */
};
@@ -193,8 +199,8 @@ struct ivi_background_surface {
struct ivi_popup_surface {
struct ivi_output *output;
- int x;
- int y;
+ int x; int y; /* initial position */
+ struct ivi_bounding_box bb; /* bounding box */
};
struct ivi_fullscreen_surface {