added support for mouse motion events and floating windows