summaryrefslogtreecommitdiffstats
path: root/grpc-proxy/grpc-async-cb.cpp
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-01-20 16:32:35 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-03-01 12:38:14 +0200
commit4af44df30c1784a69b96d310f152133a507bc2e1 (patch)
tree473b08dcd8123a3c30f2f8931972b98caa78b22d /grpc-proxy/grpc-async-cb.cpp
parent65fc5191f046ad8c7ba1bfd9e2e75afb925b4a21 (diff)
protocol, grpc-proxy: Add support for set_app_float
Add support for setting a window as float/popup. This allows either the application itself be set-up as float, or from other gRPC clients. Bug-AGL: SPEC-4673 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ic7ee8203cd9c4dfcc51b7fc9709f35be504ae9d0
Diffstat (limited to 'grpc-proxy/grpc-async-cb.cpp')
-rw-r--r--grpc-proxy/grpc-async-cb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/grpc-proxy/grpc-async-cb.cpp b/grpc-proxy/grpc-async-cb.cpp
index d0fd88d..3754b3c 100644
--- a/grpc-proxy/grpc-async-cb.cpp
+++ b/grpc-proxy/grpc-async-cb.cpp
@@ -114,7 +114,8 @@ GrpcServiceImpl::SetAppFloat(grpc::CallbackServerContext *context,
const ::agl_shell_ipc::FloatRequest* request,
::agl_shell_ipc::FloatResponse* /* response */)
{
- m_aglShell->SetAppFloat(request->app_id());
+ m_aglShell->SetAppFloat(request->app_id(),
+ request->x_pos(), request->y_pos());
grpc::ServerUnaryReactor* reactor = context->DefaultReactor();
reactor->Finish(grpc::Status::OK);