humphd/mozilla-central — pull request #16 by diogogmt (2011-12-20 08:06:48+00:00)
Title: Locked pointer position

Fixes to review item 4 "Confirm |aEvent->lastRefPoint = nsIntPoint(bounds.width/2, bounds.height/2);| that / 2"

* Instead of using the boundaries of the screen to calculcate the point where to move the mouse, it's using the boundaries of the locked element.

* When the element is in fullscreen with the pointer locked and the console is opened, it will recalculate the center of the element so the cursor won't show up in the console anymore.

* Solves the [problem] (http://vimeo.com/32953349) I had with locking the pointer on my second monitor(apparently this bug was only on linux)

I'm not sure how we can write mochitests for this change, since the screen/clientXY are set to const once the pointer is locked.