This seems to work reliable now.

Seems to work even with tricky setups. You may have to change
sensibility.
We'll see if it's realy usable or if it has some bad things left for me.