summaryrefslogtreecommitdiffstats
path: root/grpc-proxy/shell.cpp
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-07-31 14:41:48 +0300
committerMarius Vlad <marius.vlad@collabora.com>2023-08-29 13:31:20 +0000
commitca537df2c52990acf97fb1c42ec2d993c60eae2d (patch)
tree04dee27f2bec9969285547bb7815238264bf2bff /grpc-proxy/shell.cpp
parent2edba91d3eab0d7b3c490c12be1f9bc3b5255aa8 (diff)
grpc-proxy: Add dynamic scale of floating windows
This adds basic scaling for floating windows, sending new dimensions to the clients to resize itself. Bug-AGL: SPEC-4862 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ic693153cd704b278dcddd2514afc8dafecf8829b
Diffstat (limited to 'grpc-proxy/shell.cpp')
-rw-r--r--grpc-proxy/shell.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/grpc-proxy/shell.cpp b/grpc-proxy/shell.cpp
index 44f2117..bc2df23 100644
--- a/grpc-proxy/shell.cpp
+++ b/grpc-proxy/shell.cpp
@@ -130,6 +130,16 @@ Shell::SetAppPosition(const std::string &app_id, const int32_t x, const int32_t
}
void
+Shell::SetAppScale(const std::string &app_id,
+ const int32_t width, const int32_t height)
+{
+ struct agl_shell *shell = this->m_shell.get();
+
+ agl_shell_set_app_scale(shell, app_id.c_str(), width, height);
+ wl_display_flush(m_shell_data->wl_display);
+}
+
+void
Shell::SetAppSplit(const std::string &app_id, uint32_t orientation)
{
(void) app_id;