summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-13 12:26:10 -0800
committerKeith Packard <keithp@keithp.com>2013-12-13 12:26:10 -0800
commitf4061913a02987215984bcb0964938d873c2cd52 (patch)
tree160c1853ffe3432d0915e581646f2fe97d8ca8ad
parent5de191e6b1847017ecc7e13bc195f47479d332ac (diff)
Elide redirect stuff.
This isn't part of the 1.0 specification, so remove it from the current API. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--include/X11/extensions/Xpresent.h4
-rw-r--r--src/Xpresent.c4
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);