From f4061913a02987215984bcb0964938d873c2cd52 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 13 Dec 2013 12:26:10 -0800 Subject: Elide redirect stuff. This isn't part of the 1.0 specification, so remove it from the current API. Signed-off-by: Keith Packard --- include/X11/extensions/Xpresent.h | 4 ++++ src/Xpresent.c | 4 ++++ 2 files changed, 8 insertions(+) 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); -- cgit v1.2.3