summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-20 19:37:53 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-12 21:56:35 +0300
commit795eb91d057b491011594162b402543c525d6545 (patch)
tree7147d814f5e50edc8240ddaa62094e1b0ebfb7eb
parentee9259703dc1d46339197c0d3a30e18556d708c9 (diff)
policy-default: Install default policy for deactivate request
Bug-AGL: SPEC-3269 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I9ea70e6f49eda0a475a185fc037cb2c86b2b2890
-rw-r--r--src/policy-default.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/policy-default.c b/src/policy-default.c
index 3363528..16c8b2d 100644
--- a/src/policy-default.c
+++ b/src/policy-default.c
@@ -58,6 +58,13 @@ ivi_policy_default_surface_activate(struct ivi_surface *surf, void *user_data)
}
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 */
@@ -96,6 +103,7 @@ 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,