Code Review
/
src
/
agl-compositor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
layout: Activate by default xdg surface that do not have an app_id set
[src/agl-compositor.git]
/
src
/
ivi-compositor.h
diff --git
a/src/ivi-compositor.h
b/src/ivi-compositor.h
index
53e09a3
..
6969a7d
100644
(file)
--- a/
src/ivi-compositor.h
+++ b/
src/ivi-compositor.h
@@
-155,10
+155,16
@@
enum ivi_surface_role {
IVI_SURFACE_ROLE_REMOTE,
};
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 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 */
};
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;
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 {
};
struct ivi_fullscreen_surface {
@@
-327,6
+333,9
@@
ivi_layout_init(struct ivi_compositor *ivi, struct ivi_output *output);
void
ivi_layout_activate(struct ivi_output *output, const char *app_id);
void
ivi_layout_activate(struct ivi_output *output, const char *app_id);
+void
+ivi_layout_activate_by_surf(struct ivi_output *output, struct ivi_surface *surf);
+
void
ivi_layout_desktop_committed(struct ivi_surface *surf);
void
ivi_layout_desktop_committed(struct ivi_surface *surf);
@@
-365,4
+374,8
@@
ivi_set_pending_desktop_surface_remote(struct ivi_output *ioutput,
struct ivi_output *
ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi);
struct ivi_output *
ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi);
+void
+shell_advertise_app_state(struct ivi_compositor *ivi, const char *app_id,
+ const char *data, uint32_t app_state);
+
#endif
#endif