mouseHandler: keep track of the window under the mouse. If it changes then do not use the old mouse object at all. Fixes a problem where the mouse could get stuck in particular windows such as Wordpad even though there were other windows on top. mouseHandler will eventually be abstracted properly, but for now this does fix the bug.