summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-01-05 13:50:23 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-01-05 19:16:22 +0200
commitc01b90ece22cc587e94b99f4e3bce50d7a3571eb (patch)
treef102c18c012e2662e5e107981c735cda65b2305a
parent0907e87f1576f8ad70657d00d720b4f6ead8aed8 (diff)
shell: Add fallback agl-shell version 1
Turns out I made a mistake making all clients with version 1 not able to bind to agl-shell anymore. Rather than doing that still allow older clients to bind to agl-shell. Bug-AGL: SPEC-4667 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I61224f39dd8b0d96b36695f536eed8e701130877
-rw-r--r--src/shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 1418d95..4f564af 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1705,6 +1705,11 @@ bind_agl_shell(struct wl_client *client,
but still do the assignment */
ivi->shell_client.status = BOUND_OK;
agl_shell_send_bound_ok(ivi->shell_client.resource);
+ } else {
+ /* fallback for just version 1 of the protocol */
+ wl_resource_set_implementation(resource, &agl_shell_implementation,
+ ivi, unbind_agl_shell);
+ ivi->shell_client.resource = resource;
}
}