policy-default: Add the de-activate request to the default policy 02/24402/3
authorMarius Vlad <marius.vlad@collabora.com>
Sun, 19 Apr 2020 17:18:14 +0000 (20:18 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 12 May 2020 18:56:35 +0000 (21:56 +0300)
We didn't have a valid de-activate for it, but with the 'deactivate_app'
that is no longer true to make use of it.

Bug-AGL: SPEC-3269

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ife520e61360744231a13968f15bc0941ca163966

src/policy-default.c

index bcfee6b..3363528 100644 (file)
@@ -85,7 +85,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;
        }