alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

Delay prints character too late #95

Open carl-westerlund opened 6 years ago

carl-westerlund commented 6 years ago

I really like xcape. I have remaped space to shift and then xcape inserts a space if I pressed and released space on it's own. Sometimes when I write fast, the first character I write after a space is printed before the space, like this "Sometimesw hen". Can I do something about this?

cevhyruz commented 5 years ago

Any update on this issue? this is also what i'm experiencing, I tried using -t <timeout> ms but no luck..

c-max commented 5 years ago

xcape doesn't work within a serial keyboard handling queue (as kind of a filter) it doesn't (and can't) interupt the systems key handling if it should.

If you write very fast, following keys might be handled by the system while in parallel xcape gets informed about the previos key (by XRecord, IIRC) and is still handling it.

Perhaps you could use nice -20 xcape ... to make xcape a little faster. But since it has to be informed about the keypress and simulate an other one, I wouldn't put to much hope in this idea.

loota commented 5 years ago

There's some new info about this in here: #109