Reconfigure screen on user signal
Brought to you by:
andreasb123,
auroux
This is a feature suggestion to work around bug 1764082: xinput wrong drawing coordinates after screen rotation.
Since the calls to reconfigure the screen via xrandr and xsetwacom are made via a script, it would be easy for that script to also do, e.g.
pkill -SIGUSR1 xournal, i.e. send USR1 signal to Xournal. If this could be handled in the application by reconfiguring whatever it takes in GTK and/or XInput (sorry, not familiar with the details of what is required), it would solve the problem nicely. We could then have a screen flip and reconfigure of Xournal triggered for instance by a single hotkey.
What do you think?
cheers,
Simon
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