aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index a1c7ce9c..eb22d1a3 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -215,7 +215,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
struct wl_event_loop *event_loop = wl_display_get_event_loop(display);
drm->drm_event = wl_event_loop_add_fd(event_loop, drm->fd,
- WL_EVENT_READABLE, handle_drm_event, NULL);
+ WL_EVENT_READABLE, handle_drm_event, drm);
if (!drm->drm_event) {
wlr_log(WLR_ERROR, "Failed to create DRM event source");
goto error_fd;