On Tue, Aug 09, 2011 at 06:05:00PM -0700, Jason Gerecke wrote: > I've been recently trying to resurrect the DisplayToggle button > command without much success. Most of the data I need access to (e.g. > the contents of the coordinate transformation matrix) are only > accessible with a Display object. I quickly learned that calling > XOpenDisplay from within the driver is a recipe for disaster, and > haven't had any luck finding functions that work without a Display. I > also took at the old TwinView code for inspiration, but couldn't track > down how the driver wound up with the necessary info...
write a client (or integrate into an existing one) that catches the assigned button and reassigns the matrix. This way you also end up being configurable (toggle left-to-right? toggle right-to-left? etc) That aside, note that any property is accessible from within the driver through XIChangeDeviceProperty. You just need the atom name (MakeAtom()) and the rest is pretty much like the property init code in wcmXCommand.c of course, you don't have access to the screen dimensions in the driver, so you'd have to guess the matrix values. Cheers, Peter ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel