summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2009-12-03 14:20:51 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-12-03 14:27:08 -0800
commit14f5958f7fd9ebe8a772ea931feb044d2d5d967b (patch)
tree7977b2e2c575242929c0156b848e6313925d182c
parent53addc5d6ef7406d9fab5ea481cf68fa011870f1 (diff)
Bump event context structure version for page flipping
-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;