fd = wl_display_get_fd(wl_backend->server.display);
wl_backend->server_event_source =
- wl_event_loop_add_fd(loop, fd, WL_EVENT_WRITABLE | WL_EVENT_READABLE,
+ wl_event_loop_add_fd(loop, fd, WL_EVENT_READABLE,
wl_backend_handle_dispatch_events, wl_backend);
if (!wl_backend->server_event_source) {
ds_err("Failed to create event source");
goto err_src;
}
+ wl_event_source_check(wl_backend->server_event_source);
wl_backend->display_destroy.notify = wl_backend_handle_display_destroy;
wl_display_add_destroy_listener(display, &wl_backend->display_destroy);