Commit 863e66b0 authored by Emil Velikov's avatar Emil Velikov Committed by Daniel Stone

compositor-drm: correctly set the version of the drmEventContext

We implement v2 so use that instead of the DRM_EVENT_CONTEXT_VERSION

The latter defines the version of the drmEventContext struct declared in
the header [used in the current build] and can be 2, 3 or even 1000.
Signed-off-by: default avatarEmil Velikov <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent 95d48a2a
......@@ -1623,7 +1623,7 @@ on_drm_input(int fd, uint32_t mask, void *data)
drmEventContext evctx;
memset(&evctx, 0, sizeof evctx);
evctx.version = 2;
evctx.page_flip_handler = page_flip_handler;
evctx.vblank_handler = vblank_handler;
drmHandleEvent(fd, &evctx);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment