Fixed multiple problems with coalescing

Fixed: The mouse coalescing algorithm was totally broken.
Fixed: Mouse location tampering was broken after mouse coalescing was introduced.
Added: Log the reason why the mouse location needs refresh.