diff options
-rw-r--r-- | include/X11/extensions/Xpresent.h | 4 | ||||
-rw-r--r-- | src/Xpresent.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/X11/extensions/Xpresent.h b/include/X11/extensions/Xpresent.h index f49b1a4..87f446c 100644 --- a/include/X11/extensions/Xpresent.h +++ b/include/X11/extensions/Xpresent.h @@ -104,6 +104,8 @@ typedef struct { XSyncFence idle_fence; } XPresentIdleNotifyEvent; +#if PRESENT_FUTURE_VERSION + typedef struct { int type; /* event base */ unsigned long serial; @@ -141,6 +143,8 @@ typedef struct { int nnotifies; } XPresentRedirectNotifyEvent; +#endif + _XFUNCPROTOBEGIN Bool XPresentQueryExtension (Display *dpy, diff --git a/src/Xpresent.c b/src/Xpresent.c index b10b84d..36dd7dc 100644 --- a/src/Xpresent.c +++ b/src/Xpresent.c @@ -95,7 +95,9 @@ XPresentCopyCookie(Display *dpy, switch(in->evtype) { case PresentConfigureNotify: case PresentCompleteNotify: +#if PRESENT_FUTURE_VERSION case PresentRedirectNotify: +#endif break; default: printf("XPresentCopyCookie: unknown evtype %d\n", in->evtype); @@ -195,6 +197,7 @@ XPresentWireToCookie(Display *dpy, break; } +#if PRESENT_FUTURE_VERSION case PresentRedirectNotify: { xPresentRedirectNotify *proto = (xPresentRedirectNotify *) ge; xPresentNotify *xNotify = (xPresentNotify *) (proto + 1); @@ -245,6 +248,7 @@ XPresentWireToCookie(Display *dpy, } break; } +#endif default: printf("XPresentWireToCookie: Unknown generic event. type %d\n", ge->evtype); |