summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-17 09:59:17 -0800
committerEric Anholt <eric@anholt.net>2009-02-17 15:28:29 -0800
commitb349a764e98f0d8f221190157ffa0904b91beca5 (patch)
treeb3f484e756d08a5d98c2cf8d7bfd9b00361af17b
parent5394b7e66224d20888dd4020f5cb8ca930720fb4 (diff)
xinerama: Put the proto version in the code instead using proto headers.
Proto headers updating resulting in the server advertising new versions is broken. This should be applied to every extension. This fixes the build against slightly-older xineramaproto.
-rw-r--r--Xext/panoramiX.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c
index 043966877..767f6035e 100644
--- a/Xext/panoramiX.c
+++ b/Xext/panoramiX.c
@@ -57,6 +57,8 @@ Equipment Corporation.
57#endif 57#endif
58#include "modinit.h" 58#include "modinit.h"
59 59
60#define SERVER_PANORAMIX_MAJOR_VERSION 1
61#define SERVER_PANORAMIX_MINOR_VERSION 1
60 62
61#ifdef GLXPROXY 63#ifdef GLXPROXY
62extern VisualPtr glxMatchVisual(ScreenPtr pScreen, 64extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
@@ -902,8 +904,8 @@ ProcPanoramiXQueryVersion (ClientPtr client)
902 rep.type = X_Reply; 904 rep.type = X_Reply;
903 rep.length = 0; 905 rep.length = 0;
904 rep.sequenceNumber = client->sequence; 906 rep.sequenceNumber = client->sequence;
905 rep.majorVersion = PANORAMIX_MAJOR_VERSION; 907 rep.majorVersion = SERVER_PANORAMIX_MAJOR_VERSION;
906 rep.minorVersion = PANORAMIX_MINOR_VERSION; 908 rep.minorVersion = SERVER_PANORAMIX_MINOR_VERSION;
907 if (client->swapped) { 909 if (client->swapped) {
908 swaps(&rep.sequenceNumber, n); 910 swaps(&rep.sequenceNumber, n);
909 swapl(&rep.length, n); 911 swapl(&rep.length, n);