From 65fc5191f046ad8c7ba1bfd9e2e75afb925b4a21 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 20 Jan 2023 13:34:00 +0200 Subject: protocol/grpc-proxy: Add deactivate_app request This request will hide the currently active window, and activate either the background or the previously active window. This request mimics the agl-shell-desktop request, actually using the same code path. It only handles regular windows and float/pop-up. Once we add other roles like fullscreen/split we can improve on this. Bug-AGL: SPEC-4673 Signed-off-by: Marius Vlad Change-Id: I593cda5d008dfc32fe5e3b079fad9450dc1a490d --- grpc-proxy/main-grpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grpc-proxy/main-grpc.cpp') diff --git a/grpc-proxy/main-grpc.cpp b/grpc-proxy/main-grpc.cpp index a59c282..d094be5 100644 --- a/grpc-proxy/main-grpc.cpp +++ b/grpc-proxy/main-grpc.cpp @@ -260,7 +260,7 @@ global_add(void *data, struct wl_registry *reg, uint32_t id, sh->shell = static_cast(wl_registry_bind(reg, id, &agl_shell_interface, - std::min(static_cast(3), version))); + std::min(static_cast(5), version))); agl_shell_add_listener(sh->shell, &shell_listener, data); sh->version = version; } else if (strcmp(interface, "wl_output") == 0) { @@ -284,7 +284,7 @@ global_add_init(void *data, struct wl_registry *reg, uint32_t id, sh->shell = static_cast(wl_registry_bind(reg, id, &agl_shell_interface, - std::min(static_cast(3), version))); + std::min(static_cast(5), version))); agl_shell_add_listener(sh->shell, &shell_listener_init, data); sh->version = version; } -- cgit 1.2.3-korg