aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-05 19:52:06 +0100
committerSimon Ser <contact@emersion.fr>2021-01-05 19:54:20 +0100
commit3721dbfddb0e21c29688bccf11725d337f45a05c (patch)
tree628c7bb0e1ab3202d797ac91e77e8616f168de1b /backend
parent0cba1ce7478035fb90ca2043868f4be78ff165a1 (diff)
backend/wayland: remove unnecessary flags from event source
wl_event_loop_add_fd only accepts READABLE and WRITABLE. ERROR and HANGUP are always implicitly enabled.
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c
index ea966d0c..1b8ddf21 100644
--- a/backend/wayland/backend.c
+++ b/backend/wayland/backend.c
@@ -306,8 +306,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display,
struct wl_event_loop *loop = wl_display_get_event_loop(wl->local_display);
int fd = wl_display_get_fd(wl->remote_display);
- int events = WL_EVENT_READABLE | WL_EVENT_ERROR | WL_EVENT_HANGUP;
- wl->remote_display_src = wl_event_loop_add_fd(loop, fd, events,
+ wl->remote_display_src = wl_event_loop_add_fd(loop, fd, WL_EVENT_READABLE,
dispatch_events, wl);
if (!wl->remote_display_src) {
wlr_log(WLR_ERROR, "Failed to create event source");