summaryrefslogtreecommitdiff
path: root/src/Xpresent.c
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 /src/Xpresent.c
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>
Diffstat (limited to 'src/Xpresent.c')
-rw-r--r--src/Xpresent.c4
1 files changed, 4 insertions, 0 deletions
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);