diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2023-02-09 14:06:49 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2023-03-01 12:38:14 +0200 |
commit | 359a0612e48d7d21d5247199ca57063bd5965f71 (patch) | |
tree | c90fc1f6ea15395d564cc12b6e68d0661a2c6a65 /grpc-proxy/shell.cpp | |
parent | 4af44df30c1784a69b96d310f152133a507bc2e1 (diff) |
protocol: Add set_app_normal request
This request allows transitioning back from other roles like
float/split/fullscreen to regular maximized, normal state.
Bug-AGL: SPEC-4673
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id7f04ffee193677621bd32860998457498acc388
Diffstat (limited to 'grpc-proxy/shell.cpp')
-rw-r--r-- | grpc-proxy/shell.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/grpc-proxy/shell.cpp b/grpc-proxy/shell.cpp index 83032b1..eb2e08b 100644 --- a/grpc-proxy/shell.cpp +++ b/grpc-proxy/shell.cpp @@ -77,6 +77,15 @@ Shell::SetAppFloat(const std::string &app_id, int32_t x_pos, int32_t y_pos) } void +Shell::SetAppNormal(const std::string &app_id) +{ + struct agl_shell *shell = this->m_shell.get(); + + agl_shell_set_app_normal(shell, app_id.c_str()); + wl_display_flush(m_shell_data->wl_display); +} + +void Shell::SetAppSplit(const std::string &app_id, uint32_t orientation) { (void) app_id; |