diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2016-09-27 09:13:12 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2016-09-27 11:24:57 +0000 |
commit | e3cbf0f1962958457f6e09fcfdc92d8cac4b6511 (patch) | |
tree | b20e9409cab5f00c90017e01d4cfdfeab60abd9f /src/widgets/widgets/qmacnativewidget_mac.mm | |
parent | 6af82fe9fd19361f56ea4bf5a6be371722bafde3 (diff) |
Cocoa: Get mouse position from the event
We want the coordinates for a mouse event to be the
position at the time of event generation, not the
current position.
This is a followup to 39be577c which fixed this for
some cases. This commit replaces all usages of
[NSEvent mouseLocation] with code that gets the location
from the event.
Change-Id: I691a46a61ce65e2b33335453b5b22de01f76d767
Task-id: QTBUG-54399
Task-id: QTBUG-37926
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/widgets/qmacnativewidget_mac.mm')
0 files changed, 0 insertions, 0 deletions