summaryrefslogtreecommitdiffstats
path: root/grpc-proxy/main-grpc.cpp
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-03-01 16:57:38 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-03-03 12:23:36 +0200
commit4e4624dee9850b4a4e590dd0f0f2b3173bded085 (patch)
tree4f5250eaa1c9756afcf52f3cef2ab17438e8f37f /grpc-proxy/main-grpc.cpp
parent9eb8ca6ac7473107ebe391c2f78543e92e461240 (diff)
grpc-proxy: Add set_app_fullscreen functionality
This implements set_app_fullscreen which clients can set-up before being mapped. The worthwhile change here was the fact that transitioning between fullscreen, normal, and float would cause invalid tracking of the active window when switching between these states. This would make floating operation display the incorrect active window, so in order to reconcile that, we only update the previous surface if it is different that the current active one. Otherwise this fairly similar to set_app_float. Bug-AGL: SPEC-4673 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ie912c86ff7ac38d034cf4d97b2adbc5ef47ce9d3
Diffstat (limited to 'grpc-proxy/main-grpc.cpp')
-rw-r--r--grpc-proxy/main-grpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grpc-proxy/main-grpc.cpp b/grpc-proxy/main-grpc.cpp
index ea609f0..dfe899a 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<struct agl_shell *>(wl_registry_bind(reg, id,
&agl_shell_interface,
- std::min(static_cast<uint32_t>(6), version)));
+ std::min(static_cast<uint32_t>(7), 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<struct agl_shell *>(wl_registry_bind(reg, id,
&agl_shell_interface,
- std::min(static_cast<uint32_t>(6), version)));
+ std::min(static_cast<uint32_t>(7), version)));
agl_shell_add_listener(sh->shell, &shell_listener_init, data);
sh->version = version;
}