In mus clients don't necessarily see all input events. Env::last_mouse_location() is updated when aura processes an event. This means Env::last_mouse_location() is not always accurate. For aura-mus WindowTreeClient::GetCursorScreenPoint() returns the current location of the mouse.
I suspect what we want to have happen is that if last_mouse_location() is called during processing an event we return the location that was set. If last_mouse_location() is called outside of processing an event then last_mouse_location() calls to WindowTreeClient::GetCursorScreenPoint(). This has the potential to be racy, but I don't see any other way.
Comment 1 by sky@chromium.org
, Jan 27 2017Status: Started (was: Untriaged)