summaryrefslogtreecommitdiff
path: root/recipes/xorg-xserver/files
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-10-06 20:45:37 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-10-06 20:45:37 +0000
commite6f09ac96fd78f78c1d0428d3872f1f43685eb20 (patch)
treec4a6823b6fb842dfdeccdceb6fccea2e8420074d /recipes/xorg-xserver/files
parent2403fd53440120102c2c63f3b035c3fe66b50ef2 (diff)
xorg-xserver: XRandR version fix 06c06f6 ported to all old X servers.
Diffstat (limited to 'recipes/xorg-xserver/files')
-rw-r--r--recipes/xorg-xserver/files/report-correct-randr10.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/xorg-xserver/files/report-correct-randr10.patch b/recipes/xorg-xserver/files/report-correct-randr10.patch
new file mode 100644
index 0000000000..540f598fad
--- /dev/null
+++ b/recipes/xorg-xserver/files/report-correct-randr10.patch
@@ -0,0 +1,25 @@
+Index: xorg-server-1.1.0/randr/randr.c
+===================================================================
+--- xorg-server-1.1.0.orig/randr/randr.c
++++ xorg-server-1.1.0/randr/randr.c
+@@ -56,6 +56,9 @@
+ #define SubPixelUnknown 0
+ #endif
+
++#define SERVER_RANDR_MAJOR 1
++#define SERVER_RANDR_MINOR 0
++
+ #define RR_VALIDATE
+ int RRGeneration;
+ int RRNScreens;
+@@ -473,8 +476,8 @@ ProcRRQueryVersion (ClientPtr client)
+ rep.type = X_Reply;
+ rep.length = 0;
+ rep.sequenceNumber = client->sequence;
+- rep.majorVersion = RANDR_MAJOR;
+- rep.minorVersion = RANDR_MINOR;
++ rep.majorVersion = SERVER_RANDR_MAJOR;
++ rep.minorVersion = SERVER_RANDR_MINOR;
+ if (client->swapped) {
+ swaps(&rep.sequenceNumber, n);
+ swapl(&rep.length, n);