aboutsummaryrefslogtreecommitdiff
path: root/backend/wayland/registry.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/wayland/registry.c')
-rw-r--r--backend/wayland/registry.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/backend/wayland/registry.c b/backend/wayland/registry.c
index ddd2a79b..9564b1dd 100644
--- a/backend/wayland/registry.c
+++ b/backend/wayland/registry.c
@@ -7,22 +7,22 @@
static void registry_global(void *data, struct wl_registry *registry,
uint32_t name, const char *interface, uint32_t version) {
- struct wlr_backend_state *state = data;
+ struct wlr_wl_backend *backend = data;
wlr_log(L_DEBUG, "Remote wayland global: %s v%d", interface, version);
if (strcmp(interface, wl_compositor_interface.name) == 0) {
- state->compositor = wl_registry_bind(registry, name,
+ backend->compositor = wl_registry_bind(registry, name,
&wl_compositor_interface, version);
} else if (strcmp(interface, wl_shell_interface.name) == 0) {
- state->shell = wl_registry_bind(registry, name,
+ backend->shell = wl_registry_bind(registry, name,
&wl_shell_interface, version);
} else if (strcmp(interface, wl_shm_interface.name) == 0) {
- state->shm = wl_registry_bind(registry, name,
+ backend->shm = wl_registry_bind(registry, name,
&wl_shm_interface, version);
} else if (strcmp(interface, wl_seat_interface.name) == 0) {
- state->seat = wl_registry_bind(registry, name,
+ backend->seat = wl_registry_bind(registry, name,
&wl_seat_interface, version);
- wl_seat_add_listener(state->seat, &seat_listener, state);
+ wl_seat_add_listener(backend->seat, &seat_listener, backend);
}
}
@@ -36,8 +36,8 @@ static const struct wl_registry_listener registry_listener = {
.global_remove = registry_global_remove
};
-void wlr_wl_registry_poll(struct wlr_backend_state *state) {
- wl_registry_add_listener(state->registry, &registry_listener, state);
- wl_display_dispatch(state->remote_display);
- wl_display_roundtrip(state->remote_display);
+void wlr_wl_registry_poll(struct wlr_wl_backend *backend) {
+ wl_registry_add_listener(backend->registry, &registry_listener, backend);
+ wl_display_dispatch(backend->remote_display);
+ wl_display_roundtrip(backend->remote_display);
}