X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fpolicy-default.c;h=16c8b2db56493c3ccf999ae06c39ce045fb45edc;hb=795eb91d057b491011594162b402543c525d6545;hp=89b858a58be6e1026178495f9e93e4d4f00dd6df;hpb=58a3fe5c2923499160b270c7ef18a8004ee2f537;p=src%2Fagl-compositor.git diff --git a/src/policy-default.c b/src/policy-default.c index 89b858a..16c8b2d 100644 --- a/src/policy-default.c +++ b/src/policy-default.c @@ -57,6 +57,20 @@ ivi_policy_default_surface_activate(struct ivi_surface *surf, void *user_data) return true; } +static bool +ivi_policy_default_surface_deactivate(struct ivi_surface *surf, void *user_data) +{ + /* verify that the surface should be de-activated to */ + return true; +} + +static bool +ivi_policy_default_surface_activate_default(struct ivi_surface *surf, void *user_data) +{ + /* verify that the surface should be switched to */ + return true; +} + static bool ivi_policy_default_allow_to_add(void *user_data) { @@ -78,7 +92,7 @@ ivi_policy_default_try_event(struct ivi_a_policy *a_policy) ivi_layout_activate(a_policy->output, a_policy->app_id); break; case AGL_SHELL_POLICY_EVENT_HIDE: - /* FIXME: remove the active one, like basically unmap it? */ + ivi_layout_deactivate(a_policy->policy->ivi, a_policy->app_id); default: break; } @@ -89,6 +103,8 @@ static const struct ivi_policy_api policy_api = { .surface_create = ivi_policy_default_surface_create, .surface_commited = ivi_policy_default_surface_commmited, .surface_activate = ivi_policy_default_surface_activate, + .surface_deactivate = ivi_policy_default_surface_deactivate, + .surface_activate_by_default = ivi_policy_default_surface_activate_default, .policy_rule_allow_to_add = ivi_policy_default_allow_to_add, .policy_rule_try_event = ivi_policy_default_try_event, };