summaryrefslogtreecommitdiff
path: root/recipes/xorg-xserver/files/report-correct-randr12.patch
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-10-13 17:30:38 +0400
committerSergey Lapin <slapin@ossfans.org>2009-10-13 17:30:38 +0400
commitc9d89f888ec69245c56358b454f37cffd8bb87ac (patch)
tree10d3aefa0fc1c74baeccbc456ce16e0d42816f17 /recipes/xorg-xserver/files/report-correct-randr12.patch
parent43653cf44fc541bd55cb094392444a7faa7bb3be (diff)
parent925dea6086bd5f7479eda0226f32bcd46ba025a1 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/xorg-xserver/files/report-correct-randr12.patch')
-rw-r--r--recipes/xorg-xserver/files/report-correct-randr12.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/xorg-xserver/files/report-correct-randr12.patch b/recipes/xorg-xserver/files/report-correct-randr12.patch
new file mode 100644
index 0000000000..72c8a18add
--- /dev/null
+++ b/recipes/xorg-xserver/files/report-correct-randr12.patch
@@ -0,0 +1,29 @@
+Server reports XRandR version provided by libxrandr instead of XRandR
+version implemented. It confuses applications that execute XRandR
+version dependent code (e. g. gtk+ >= 2.18.0).
+
+Index: xorg-server-1.3.0.0/randr/rrdispatch.c
+===================================================================
+--- xorg-server-1.3.0.0.orig/randr/rrdispatch.c
++++ xorg-server-1.3.0.0/randr/rrdispatch.c
+@@ -22,6 +22,9 @@
+
+ #include "randrstr.h"
+
++#define SERVER_RANDR_MAJOR 1
++#define SERVER_RANDR_MINOR 2
++
+ Bool
+ RRClientKnowsRates (ClientPtr pClient)
+ {
+@@ -49,8 +52,8 @@ ProcRRQueryVersion (ClientPtr client)
+ * Report the current version; the current
+ * spec says they're all compatible after 1.0
+ */
+- 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);