mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/drm: fix NULL data in handle_drm_event
wl_event_loop_add_fd was called with a NULL data argument, but the
function expects the data argument to be set to the wlr_drm_backend.
Fixes: 053ebe7c27
("backend/drm: terminate display on drmHandleEvent failure")
This commit is contained in:
parent
a93b18dbd5
commit
f94eb174c7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue