X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fshell.c;h=b1ef59bf1404945c70bce606ccc0a8d69ec6fb2c;hb=refs%2Fchanges%2F63%2F28463%2F2;hp=bcfb673d3b48c0ea7c5717b67835627f1ba8d6d8;hpb=28ec0cff16d62260fb1a5900f57353f48446e199;p=src%2Fagl-compositor.git diff --git a/src/shell.c b/src/shell.c index bcfb673..b1ef59b 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1438,6 +1438,15 @@ shell_activate_app(struct wl_client *client, ivi_layout_activate(output, app_id); } +static void +shell_new_deactivate_app(struct wl_client *client, struct wl_resource *shell_res, + const char *app_id) +{ + struct ivi_compositor *ivi = wl_resource_get_user_data(shell_res); + + ivi_layout_deactivate(ivi, app_id); +} + static void shell_desktop_activate_app(struct wl_client *client, struct wl_resource *shell_res, @@ -1518,7 +1527,8 @@ static const struct agl_shell_interface agl_shell_implementation = { .set_panel = shell_set_panel, .activate_app = shell_activate_app, .destroy = shell_destroy, - .set_activate_region = shell_set_activate_region + .set_activate_region = shell_set_activate_region, + .deactivate_app = shell_new_deactivate_app, }; static const struct agl_shell_ext_interface agl_shell_ext_implementation = { @@ -1818,7 +1828,7 @@ int ivi_shell_create_global(struct ivi_compositor *ivi) { ivi->agl_shell = wl_global_create(ivi->compositor->wl_display, - &agl_shell_interface, 4, + &agl_shell_interface, 5, ivi, bind_agl_shell); if (!ivi->agl_shell) { weston_log("Failed to create wayland global.\n");