summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-21 13:39:03 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-12 21:56:35 +0300
commit25ede504313876c911def2ad2f5323222b9b60a9 (patch)
tree5d047b10f23861452b5581985d45f50943ffde05
parentb4ae3794bc969bdb0d54f2e882f0ef36c51d7ed4 (diff)
policy-default: Install default for the state event notify
Bug-AGL: SPEC-3269 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Id5840ecd1384f15c67a5dd6070f4d02c0e6df690
-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 16c8b2d..735f5c5 100644
--- a/src/policy-default.c
+++ b/src/policy-default.c
@@ -72,6 +72,13 @@ ivi_policy_default_surface_activate_default(struct ivi_surface *surf, void *user
}
static bool
+ivi_policy_default_surface_advertise_state_change(struct ivi_surface *surf, void *user_data)
+{
+ /* verify that the surface should sent as notification */
+ return true;
+}
+
+static bool
ivi_policy_default_allow_to_add(void *user_data)
{
/* verify that policy rules can be added with ivi_policy_add() */
@@ -105,6 +112,7 @@ static const struct ivi_policy_api policy_api = {
.surface_activate = ivi_policy_default_surface_activate,
.surface_deactivate = ivi_policy_default_surface_deactivate,
.surface_activate_by_default = ivi_policy_default_surface_activate_default,
+ .surface_advertise_state_change = ivi_policy_default_surface_advertise_state_change,
.policy_rule_allow_to_add = ivi_policy_default_allow_to_add,
.policy_rule_try_event = ivi_policy_default_try_event,
};