summaryrefslogtreecommitdiffstats
path: root/wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wayland.c b/wayland.c
index 7803f3d..73f2236 100644
--- a/wayland.c
+++ b/wayland.c
@@ -385,8 +385,7 @@ wl_client_connection_update(struct wl_connection *connection,
if (mask & WL_CONNECTION_WRITABLE)
emask |= WL_EVENT_WRITEABLE;
- return wl_event_loop_update_source(client->display->loop,
- client->source, mask);
+ return wl_event_source_fd_update(client->source, mask);
}
static void
@@ -466,7 +465,7 @@ wl_client_destroy(struct wl_client *client)
free(ref);
}
- wl_event_loop_remove_source(client->display->loop, client->source);
+ wl_event_source_remove(client->source);
wl_connection_destroy(client->connection);
free(client);
}