diff options
author | 2022-10-18 23:32:40 +0300 | |
---|---|---|
committer | 2022-12-05 15:27:26 +0200 | |
commit | c42f50b567a0d5adf2c51322d4d46e33ce4ccb59 (patch) | |
tree | f69d295a3cc5883842e6ba669e98f6579451a8a5 /src/layout.c | |
parent | 05bb0384732480a9f24a8d9093ac2da20081e307 (diff) |
shell: Add a wrappers for sending events with agl-shell
As we now have one more (shell) client that can bind to agl-shell, add a
wrapper for sending the events and include it as well.
Bug-AGL: SPEC-4503
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I869b036d6f24beeb3089bfd24b8d233c5fada71f
Diffstat (limited to 'src/layout.c')
-rw-r--r-- | src/layout.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/layout.c b/src/layout.c index 1773fc8..f2fc6cc 100644 --- a/src/layout.c +++ b/src/layout.c @@ -312,10 +312,7 @@ ivi_layout_activate_complete(struct ivi_output *output, app_id, ivi_layout_get_surface_role_name(surf), output->name); - if (wl_resource_get_version(ivi->shell_client.resource) >= AGL_SHELL_APP_STATE_SINCE_VERSION) - agl_shell_send_app_state(ivi->shell_client.resource, - app_id, AGL_SHELL_APP_STATE_ACTIVATED); - + shell_send_app_state(ivi, app_id, AGL_SHELL_APP_STATE_ACTIVATED); } struct ivi_output * @@ -1072,7 +1069,5 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id) weston_surface_damage(view->surface); } - if (wl_resource_get_version(ivi->shell_client.resource) >= AGL_SHELL_APP_STATE_SINCE_VERSION) - agl_shell_send_app_state(ivi->shell_client.resource, app_id, - AGL_SHELL_APP_STATE_DEACTIVATED); + shell_send_app_state(ivi, app_id, AGL_SHELL_APP_STATE_DEACTIVATED); } |