summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xf86drm.h2
-rw-r--r--xf86drmMode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 89f1db18..9b89f562 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -693,7 +693,7 @@ extern void drmMsg(const char *format, ...);
extern int drmSetMaster(int fd);
extern int drmDropMaster(int fd);
-#define DRM_EVENT_CONTEXT_VERSION 1
+#define DRM_EVENT_CONTEXT_VERSION 2
typedef struct _drmEventContext {
diff --git a/xf86drmMode.c b/xf86drmMode.c
index e9516851..317aa47f 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -701,7 +701,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
U642VOID (vblank->user_data));
break;
case DRM_EVENT_FLIP_COMPLETE:
- if (evctx->version < 1 ||
+ if (evctx->version < 2 ||
evctx->page_flip_handler == NULL)
break;
vblank = (struct drm_event_vblank *) e;