diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-01-15 17:08:54 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-02-02 21:07:07 +0200 |
commit | 3950b7e787c19bd1917533081c8fb8d4331e4ef3 (patch) | |
tree | e16a7e68ac966b51123d67e6b4dd8b8ca235831a /src/main.c | |
parent | ffd00ab3a05351bac2124e5eba8a66f20a3b62da (diff) |
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 <marius.vlad@collabora.com>
Change-Id: Ib44f0fcccc145216fb28fc9c26e5a065912ceef5
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1088,6 +1088,20 @@ usage(int error_code) exit(error_code); } +static void +ivi_compositor_get_quirks(struct ivi_compositor *ivi) +{ + struct weston_config_section *section; + + if (!ivi->config) + return; + + section = weston_config_get_section(ivi->config, "shell", NULL, NULL); + weston_config_section_get_bool(section, "activate-by-default", + &ivi->quirks.activate_apps_by_default, 0); + +} + int main(int argc, char *argv[]) { struct ivi_compositor ivi = { 0 }; @@ -1146,6 +1160,8 @@ int main(int argc, char *argv[]) backend = choose_default_backend(); } + ivi_compositor_get_quirks(&ivi); + display = wl_display_create(); loop = wl_display_get_event_loop(display); |