summarylogtreecommitdiffstats
path: root/bad-impl.patch
diff options
context:
space:
mode:
authorBalló György2015-12-16 15:25:09 +0100
committerBalló György2015-12-16 15:25:09 +0100
commit7c84b15d95862728c885f1659caec78235768290 (patch)
treef4e8d2be53598036d763cf00fa72950c823ad56b /bad-impl.patch
parent40772d2aa23845e0d368a47a2057fbb4704ea526 (diff)
downloadaur-7c84b15d95862728c885f1659caec78235768290.tar.gz
upgpkg: xorg-server1.12 1.12.4-6
Fix error with catalyst driver
Diffstat (limited to 'bad-impl.patch')
-rw-r--r--bad-impl.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/bad-impl.patch b/bad-impl.patch
new file mode 100644
index 000000000000..57a865893645
--- /dev/null
+++ b/bad-impl.patch
@@ -0,0 +1,31 @@
+--- xorg-server.orig/Xi/xiselectev.c 2012-05-17 19:09:01.000000000 +0200
++++ xorg-server/Xi/xiselectev.c 2012-12-18 10:29:38.804469850 +0100
+@@ -175,17 +175,24 @@
+ if (inputMasks)
+ iclient = inputMasks->inputClients;
+ for (; iclient; iclient = iclient->next) {
+- DeviceIntPtr dummy;
++ DeviceIntPtr devTest;
++ DeviceIntRec dummyTest;
+
+ if (CLIENT_ID(iclient->resource) == client->index)
+ continue;
+
+- dixLookupDevice(&dummy, evmask->deviceid, serverClient,
++ if (evmask->deviceid == XIAllDevices ||
++ evmask->deviceid == XIAllMasterDevices) {
++ dummyTest.id = evmask->deviceid;
++ devTest = &dummyTest;
++ }
++ else
++ dixLookupDevice(&devTest, evmask->deviceid, serverClient,
+ DixReadAccess);
+- if (!dummy)
++ if (!devTest)
+ return BadImplementation; /* this shouldn't happen */
+
+- if (xi2mask_isset(iclient->xi2mask, dummy, XI_TouchBegin))
++ if (xi2mask_isset(iclient->xi2mask, devTest, XI_TouchBegin))
+ return BadAccess;
+ }
+ }