- if (strcmp(interface, agl_shell_interface.name) == 0) {
- // bind to at least v3 to get events
- sh->shell =
- static_cast<struct agl_shell *>(wl_registry_bind(reg, id,
- &agl_shell_interface,
- std::min(static_cast<uint32_t>(5), version)));
- agl_shell_add_listener(sh->shell, &shell_listener, data);
- sh->version = version;
- } else if (strcmp(interface, "wl_output") == 0) {
- display_add_output(sh, reg, id, version);
- }
-}
-
-// the purpose of this _init is to make sure we're not the first shell client
-// running to allow the 'main' shell client take over.
-static void
-global_add_init(void *data, struct wl_registry *reg, uint32_t id,
- const char *interface, uint32_t version)
-{