From 000b725db81ae79ffec0a7a84a2c4aab2778dc82 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 31 Jan 2024 19:10:34 +0200 Subject: grpc-proxy/shell: Add sticky parameter when setting up split window This allow to further customize how to handle the split window. There's no implementation in the compositor for allow this functionality to take place, but doing so can be at a later point in time. Tagging the split window as sticky should allow activation of other windows while keeping the split window always displayed. Bug-AGL: SPEC-4839 Signed-off-by: Marius Vlad Change-Id: Iae4d18d2a857497c11d0e77bf43f654e2b8ed501 --- grpc-proxy/shell.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'grpc-proxy/shell.cpp') diff --git a/grpc-proxy/shell.cpp b/grpc-proxy/shell.cpp index 6dffe6b..7267d70 100644 --- a/grpc-proxy/shell.cpp +++ b/grpc-proxy/shell.cpp @@ -140,7 +140,8 @@ Shell::SetAppScale(const std::string &app_id, } void -Shell::SetAppSplit(const std::string &app_id, uint32_t orientation, uint32_t width, const std::string &output_name) +Shell::SetAppSplit(const std::string &app_id, uint32_t orientation, + uint32_t width, uint32_t sticky, const std::string &output_name) { struct window_output *woutput, *w_output; struct agl_shell *shell = this->m_shell.get(); @@ -161,6 +162,6 @@ Shell::SetAppSplit(const std::string &app_id, uint32_t orientation, uint32_t wid w_output, link); - agl_shell_set_app_split(shell, app_id.c_str(), orientation, width, w_output->output); + agl_shell_set_app_split(shell, app_id.c_str(), orientation, width, sticky, w_output->output); wl_display_flush(m_shell_data->wl_display); } -- cgit 1.2.3-korg