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.
This commit is contained in:
parent
5394b7e662
commit
b349a764e9
|
@ -57,6 +57,8 @@ Equipment Corporation.
|
||||||
#endif
|
#endif
|
||||||
#include "modinit.h"
|
#include "modinit.h"
|
||||||
|
|
||||||
|
#define SERVER_PANORAMIX_MAJOR_VERSION 1
|
||||||
|
#define SERVER_PANORAMIX_MINOR_VERSION 1
|
||||||
|
|
||||||
#ifdef GLXPROXY
|
#ifdef GLXPROXY
|
||||||
extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
|
extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
|
||||||
|
@ -902,8 +904,8 @@ ProcPanoramiXQueryVersion (ClientPtr client)
|
||||||
rep.type = X_Reply;
|
rep.type = X_Reply;
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
rep.majorVersion = PANORAMIX_MAJOR_VERSION;
|
rep.majorVersion = SERVER_PANORAMIX_MAJOR_VERSION;
|
||||||
rep.minorVersion = PANORAMIX_MINOR_VERSION;
|
rep.minorVersion = SERVER_PANORAMIX_MINOR_VERSION;
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
swaps(&rep.sequenceNumber, n);
|
swaps(&rep.sequenceNumber, n);
|
||||||
swapl(&rep.length, n);
|
swapl(&rep.length, n);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user