diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-07-11 17:30:45 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-07-11 17:30:45 +0200 |
commit | 8515b7c65b884ff2c6bb1b206e3ad0d8bfb841a4 (patch) | |
tree | 237c2bce341edc58ec1790d993961bf94c099a7f /backend | |
parent | e463b49166841f71c6ee9b8922ae5dc8973174ce (diff) |
x11: use correct type for events in wl_event_loop_add_fd
Diffstat (limited to 'backend')
-rw-r--r-- | backend/x11/backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index cbe4833b..f5619207 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -258,7 +258,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, int fd = xcb_get_file_descriptor(x11->xcb_conn); struct wl_event_loop *ev = wl_display_get_event_loop(display); - int events = WL_EVENT_READABLE | WL_EVENT_ERROR | WL_EVENT_HANGUP; + uint32_t events = WL_EVENT_READABLE | WL_EVENT_ERROR | WL_EVENT_HANGUP; x11->event_source = wl_event_loop_add_fd(ev, fd, events, x11_event, x11); if (!x11->event_source) { wlr_log(WLR_ERROR, "Could not create event source"); |