Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 synaptiks (0.8.1-1ubuntu2) quantal-proposed; urgency=low
 .
   * Fix xinput version detection that renders kde-config-touchpad unusable
     (LP: #1039261)
Author: Scott Kitterman <scott@kitterman.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1039261

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor
Bug-Ubuntu: https://launchpad.net/bugs/1039261
Forwarded: no
Reviewed-By: Scott Kitterman <scott@kitterman.com>
Last-Update: <2012-10-16>

--- synaptiks-0.8.1.orig/synaptiks/x11/input.py
+++ synaptiks-0.8.1/synaptiks/x11/input.py
@@ -143,7 +143,7 @@ def assert_xinput_version(display):
 
     Raise :exc:`XInputVersionError`, if the version isn't sufficient.
     """
-    matched, actual_version = xinput.query_version(display, (2, 0))
+    matched, actual_version = xinput.query_version(display.from_name(), (2, 0))
     if not matched:
         raise XInputVersionError((2, 0), actual_version)
 
