summaryrefslogtreecommitdiffstats
path: root/src/ivi-compositor.h
diff options
context:
space:
mode:
authorWalter Lozano <walter.lozano@collabora.com>2020-09-23 13:31:23 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-10-15 09:33:47 +0000
commitfe771c084c2f0192ca08dd3b7f85088960703e36 (patch)
treead8cb121acf994dc9bc8f61281a393641f8366ae /src/ivi-compositor.h
parentabe3abc327b7d770b81f976d79f12112010e6a4e (diff)
shell: Advertise app when app_id is available
When using GTK-3 to create apps, the framework issues set_parent_id which forces a surface to be added even before the app_id is set. This causes the compositor to fail to advertise the app. This patch tries to overcome this issue by checking on surface commit if the surface was previously advertised, and do it if it was not. Signed-off-by: Walter Lozano <walter.lozano@collabora.com> Change-Id: I4e5fec82c1008c30d8ae7d213d85a82e39c404c3
Diffstat (limited to 'src/ivi-compositor.h')
-rw-r--r--src/ivi-compositor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 4708b5d..0c9d604 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -243,6 +243,7 @@ struct ivi_surface {
int32_t width, height;
} pending;
bool activated_by_default;
+ bool advertised_on_launch;
enum ivi_surface_role role;
union {
@@ -254,6 +255,9 @@ struct ivi_surface {
struct ivi_split_surface split;
struct ivi_remote_surface remote;
};
+
+ struct wl_listener listener_advertise_app;
+ struct wl_signal signal_advertise_app;
};
struct ivi_shell_client {
@@ -389,4 +393,7 @@ ivi_seat_init(struct ivi_compositor *ivi);
void
ivi_seat_reset_caps_sent(struct ivi_compositor *ivi);
+void
+agl_shell_desktop_advertise_application_id(struct ivi_compositor *ivi,
+ struct ivi_surface *surface);
#endif