Postpone location refresh until actually needed

Previously mouse location was refreshed immediately after
a button press, instead of when the next move event arrived.

This seems to fix LoL for real, but you never know...

Also some minor fixed here and there.