BadMatch may "occur if an XSetDeviceMode request is made specifying a device that has no valuators and reports no axes of motion." XSetDeviceMode(3)
This isn't the case for us, it's an invalid mode that has been selected here. Return XI_BadMode instead, the server will return this as BadMode as of: commit 02d1116e7eb84068fa32477f1640d29b0a81b638 Refs: xorg-server-1.7.99.901-12-g02d1116 Author: Peter Hutterer <peter.hutte...@who-t.net> AuthorDate: Mon Jan 11 16:35:36 2010 +1000 Xi: assume BadMode for non-BadMatch errors returned from SetDeviceMode. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/wcmXCommand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c index a4edb41..0a1c8e9 100644 --- a/src/wcmXCommand.c +++ b/src/wcmXCommand.c @@ -81,7 +81,7 @@ int wcmDevSwitchModeCall(LocalDevicePtr local, int mode) else if ( (mode != Absolute) && (mode != Relative)) { DBG(10, priv, "invalid mode=%d\n", mode); - return BadMatch; + return XI_BadMode; } return Success; -- 1.6.6.1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel