iberianpig / xSwipe

Multitouch gestures with synaptics driver on X11, Linux
452 stars 56 forks source link

3+ gestures produce characters in terminal #34

Open AlexD97 opened 8 years ago

AlexD97 commented 8 years ago

When the terminal (in Gnome) is used und I make a 3+ gesture, characters like A,B,C,D appear in the terminal. Only after this I can make the gesture again and then it does what it is supposed to do.

iberianpig commented 8 years ago

Please try to press key "alt + up" or "alt + down" or "alt + right" or "alt + left" on your terminal. You can see "A" or "B" or "C" or "D". These character are generated by terminal itself.

jra11 commented 8 years ago

I had exactly the same issue.

The xSwipe script calls "PressKey" and "ReleaseKey" of X11::GuiTest. This seems to be unreliable, as sometimes one key is pressed but seems "dissociated" of the other keys pressed, producing a character in the terminal (despite the ReleaseKey is well called after PressKey for all keys).

I modified my version of xSwipe, so now the three-fingers swipe calls directly another function/script/whatever (wmctrl in my case, as I just want to change workspace). It's ugly but it works very well.

A patch of xSwipe to use something else than X11::GuiTest might be relevant.

Note: I tested also the "SendKeys" function of X11::GuiTest => same issue.