Denis Auroux - 2010-02-02

Sounds like an excellent idea, especially since a tablet-rotation script might reconfigure the wacom tablet coordinate space *after* modifying the screen geometry. (in which case attempting to detect screen configuration changes might not be good enough). I was also thinking of trying to automatically detect when screen coordinates differ from xinput event coordinates and recalibrating then, but this is made complicated by GTK+ event filtering.

The main difficulty though is that "reconfiguring" is not so easy. Xournal does try to bypass part of the GTK+ processing when it comes to translating event coordinates from input devices, but it still has to rely on GTK+ to know about how devices are calibrated... and unfortunately GTK+ does not have a concept of "reconfiguration" of input devices yet, all the settings are fixed in stone at the moment the application starts up.

Hence, any fix of calibration issues will involve either an update to GTK+ to make it reconfiguration-aware, or bypassing GTK+ in part to talk directly to the X server and query input device configuration. (Not so clean, but I'm comfortable with the idea).

Denis