Comment 19 for bug 1039261

Revision history for this message
Chris Samuel (chris-csamuel) wrote :

The title and summary of this bug needs to be fixed, it's misleading.

The problem isn't with the XInput version, which is fine, it's that the Python code doesn't cope correctly with the error it is getting (BadValue) which indicates that a previous XIQueryVersion() call was made with a higher XInput version number (2.1) than the one it sent (2.0).

This first call appears to now happen when the Python code does:

    class SynaptiksApplication(KUniqueApplication):

which is on line 246 of /usr/share/pyshared/synaptiks/kde/trayapplication.py.

A temporary workaround would be to change line 146 of /usr/share/pyshared/synaptiks/x11/input.py from:

    matched, actual_version = xinput.query_version(display, (2, 0))

to:

    matched, actual_version = xinput.query_version(display, (2, 1))

which will make it work until the XInput version changes again (or if the user runs the code on an older system with XInput version 2.0).

Not entirely sure what the right fix should be, but I suspect this needs to be reported back upstream to KDE.