From 3950b7e787c19bd1917533081c8fb8d4331e4ef3 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 15 Jan 2020 17:08:54 +0200 Subject: layout: Use the background's surface ivi_output when activating apps by default In order to activate application by default, we need a ivi_output which for the desktop role that's not available at that time (the activation part actually will set-up one). Uses the bg output for this case. This is only activated by adding 'activate-by-default' bool variable under the '[shell]' section (in the ini configuration file). Bug-AGL: SPEC-3118 Signed-off-by: Marius Vlad Change-Id: Ib44f0fcccc145216fb28fc9c26e5a065912ceef5 --- src/ivi-compositor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ivi-compositor.h') diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index 68cbbdf..f3a51d6 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -62,6 +62,10 @@ struct ivi_compositor { const struct weston_drm_output_api *drm_api; struct wl_global *agl_shell; + struct { + int activate_apps_by_default; /* switches once xdg top level has been 'created' */ + } quirks; + struct { struct wl_client *client; struct wl_resource *resource; -- cgit 1.2.3-korg