[PATCH] [synaptic] swipe actions based on the tree-fingers touch

Gabriele Mazzotta gabriele.mzt at gmail.com
Fri Sep 5 10:58:02 PDT 2014


On Friday 05 September 2014 18:51:19 Arkadiusz Bokowy wrote:
> Hi Peter,
> Hi Gabriele,
> 
> First of all thanks for reviewing the code and I'm glad, that you see
> this patch as a valuable one. At the moment of writing it, I thought,
> that it is a good approach to "hack" swipe functionality into the core
> of the synaptic driver. However right now I'm not sure about that...
> 
> For a long time I was concerned, that such a approach might turn out to
> be a dead end. At the moment on Mac one can define actions for gestures
> with up to four fingers (and all of them are useful). There are also
> possibilities to combine gesture with key modifiers. So I think, that
> similar combinations should be possible in the X system. Furthermore,
> one should be able to configure actions if the given gesture should
> generate mouse click/release event or click->movie_pointer->release.
> Such an event is useful for moving windows with touchpad gesture. And
> the list of combinations goes on, including the xbindkeys mentioned by
> Gabriele.
> 
> But long story short. I think, that gesture engine should be separated
> from the driver itself. However, right now I'm not able to figure out
> how to pass key press/release event into such a gesture engine without
> an ugly hack with running daemon (like syndaemon). But maybe this idea
> is completely wrong and I'm insane :)
> 
> So, as for now, I agree with you Peter, that only the right/left swipe
> action is acceptable for strict incorporation into the synaptic driver.
> If everyone agree with that, I can generate appropriate patch including
> your corrections.

I agree with you when you say that gesture engines should be kept separated
and you may want to take a look at Touchégg (https://code.google.com/p/touchegg/).
The last time I tried it I had some problems, then I stumbled upon your patch,
which, despite being more limiting, had always worked reliably.

Gabriele


More information about the xorg-devel mailing list