summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-08-24 17:47:20 +0200
committerJulien Cristau <jcristau@debian.org>2008-08-24 17:48:32 +0200
commita7bbbfd0d9ef43f0ac47fe867eab7cc37b4082a4 (patch)
tree41e5bbd8f88281654f23698933653e804a992b0e /debian/patches
parentaacde8c401f0ef95257435013cb9e79086372358 (diff)
Make RandRQueryVersion return 1.1 for swapped clients
Don't pretend we support randr 1.2 when queried by swapped clients. The dispatch code for RandR 1.2 requests would return BadImplementation anyway.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/50_Make-RandRQueryVersion-return-1.1-for-swapped-client.patch31
-rw-r--r--debian/patches/series1
2 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/50_Make-RandRQueryVersion-return-1.1-for-swapped-client.patch b/debian/patches/50_Make-RandRQueryVersion-return-1.1-for-swapped-client.patch
new file mode 100644
index 000000000..d2b76e9e4
--- /dev/null
+++ b/debian/patches/50_Make-RandRQueryVersion-return-1.1-for-swapped-client.patch
@@ -0,0 +1,31 @@
+From 40090eca032d602c78223abaa13ca4702db86b74 Mon Sep 17 00:00:00 2001
+From: Julien Cristau <jcristau@debian.org>
+Date: Sun, 24 Aug 2008 17:44:10 +0200
+Subject: [PATCH] Make RandRQueryVersion return 1.1 for swapped clients
+
+Don't pretend we support randr 1.2 when queried by swapped clients.
+The dispatch code for RandR 1.2 requests would return BadImplementation
+anyway.
+---
+ randr/rrdispatch.c | 5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/randr/rrdispatch.c b/randr/rrdispatch.c
+index 5525427..83deb6b 100644
+--- a/randr/rrdispatch.c
++++ b/randr/rrdispatch.c
+@@ -55,6 +55,11 @@ ProcRRQueryVersion (ClientPtr client)
+ rep.majorVersion = SERVER_RANDR_MAJOR;
+ rep.minorVersion = SERVER_RANDR_MINOR;
+ if (client->swapped) {
++ /*
++ * We return BadImplementation for swapped clients on 1.2 requests,
++ * let's not do that
++ */
++ rep.minorVersion = 1;
+ swaps(&rep.sequenceNumber, n);
+ swapl(&rep.length, n);
+ swapl(&rep.majorVersion, n);
+--
+1.5.6.3
+
diff --git a/debian/patches/series b/debian/patches/series
index 5252460d4..c6c3dbc67 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -23,6 +23,7 @@
47_fbdevhw_magic_numbers.diff
48_xaa_nooffscreenpixmaps.diff
49_x86emu_int1a_fix.diff
+50_Make-RandRQueryVersion-return-1.1-for-swapped-client.patch
91_ttf2pt1
91_ttf2pt1_updates
92_xprint-security-holes-fix.patch