libgtkstylus: working on new version
Hallo.
After a bit of learning of GTK+ event processing, I decided to improve old version of libgtkstylus a bit.
Writing an event rewriting utility that does not break behavior of application is a surprisingly complex task.
I would be glad if more people will test it before the release.
Current versions contains a critical asserts. Please report any console output it application aborts on assert.
On devices with a broken noisy input driver (e. g. drivers for ADS7846, Zaurus), configure with --enable-jitter-filter (read INSTALL for more).
Bug fixes:
New version never eats motion hints.
New features:
Right button emulation on Fn button is on by default
Middle button emulation on right Ctrl
On Zaurus it is recommended together with this addition in .profile:
if test -n "$DISPLAY" ; then
xmodmap - <<EOF
keycode 105 = Control_R
add mod5 = Control_R
EOF
fi
(You may easily change the modifier# in the source.)
New version suppresses or delays enter, leave and motion events when stylus is not used. It is intended to prevent unwanted highlighting in place of the last tap and suppress tooltips.
There are still several problems to fix, but version 0.4rc4 usability seems to be comparable with version 0.3.
References:
http://ftp.penguin.cz/pub/users/utx/gtk-modules/
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
Wow, that's pretty good news.
The thing that always put me off of using libgtkstylus was that it introduces additional delay for single (left) keypresses -- is that fixed with your version?
:M:
Quoted 5 lines · Michael 'Mickey' Lauer
Wow, that's pretty good news.
The thing that always put me off of using libgtkstylus was that it introduces additional delay for single (left) keypresses -- is that fixed with your version?
Could you tell me, which applications are affected by this problem?
I am not aware of any delay of a single left keypress, even in version 0.3. Looking at the code, they are sent directly to the application without any delay and start right press emulation timer.
The delays I experience (e. g. in multi-tab browsing in midori) seems to have nothing with gtkstylus, but it is a simple consequence of slow CPU.
Well, rc4 still has problems in these situations - timer seems to have highest priority, then midori callbacks, then next event processing. Even if you release stylus after <500ms, release event is processed later than 500ms after press, timer expires, right press is emulated. Fix would need deeper study of the main loop priorities.
Another delays are I experienced are caused by motion hint processing bug GTK+ and many applications:
http://bugzilla.gnome.org/show_bug.cgi?id=587714 (and dependent bugs)
As it needs to be re-implemented, I just prepared work-arounds in some
applications: gqview (committed), viking (in their tracker).
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus