Blame SOURCES/presentproto-0001-Force-Window-and-Pixmap-to-be-CARD32-on-the-wire.patch

a38fe9
From 8405ee4552565825d776e6a8963d33d9cd9cddf0 Mon Sep 17 00:00:00 2001
a38fe9
From: Adam Jackson <ajax@redhat.com>
a38fe9
Date: Wed, 11 Dec 2013 13:25:06 -0500
a38fe9
Subject: [PATCH presentproto 1/4] Force Window and Pixmap to be CARD32 on the
a38fe9
 wire
a38fe9
a38fe9
If you don't do this then the client libs on 64-bit machines see them as
a38fe9
XIDs, which are 64-bit wide (sigh), which ruins the wire encoding and
a38fe9
nothing works.
a38fe9
a38fe9
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
a38fe9
Signed-off-by: Adam Jackson <ajax@redhat.com>
a38fe9
---
a38fe9
 presentproto.h | 4 ++++
a38fe9
 1 file changed, 4 insertions(+)
a38fe9
a38fe9
diff --git a/presentproto.h b/presentproto.h
a38fe9
index 8303a94..ee65fa4 100644
a38fe9
--- a/presentproto.h
a38fe9
+++ b/presentproto.h
a38fe9
@@ -25,6 +25,8 @@
a38fe9
 
a38fe9
 #include <X11/extensions/presenttokens.h>
a38fe9
 
a38fe9
+#define Window CARD32
a38fe9
+#define Pixmap CARD32
a38fe9
 #define Region CARD32
a38fe9
 #define XSyncFence CARD32
a38fe9
 #define EventID CARD32
a38fe9
@@ -235,6 +237,8 @@ typedef struct {
a38fe9
 
a38fe9
 #define sz_xPresentRedirectNotify 104
a38fe9
 
a38fe9
+#undef Window
a38fe9
+#undef Pixmap
a38fe9
 #undef Region
a38fe9
 #undef XSyncFence
a38fe9
 #undef EventID
a38fe9
-- 
a38fe9
1.9.0
a38fe9