Tk Source Code

View Ticket
Login
Ticket UUID: 9ebc6fd168056a6823418ef34f585c4ffad44343
Title: Aqua sometimes provides incorrect mouse coordinates.
Type: Bug Version: 8.6.9
Submitter: marc_culler Created on: 2019-06-03 18:58:24
Subsystem: 69. Events Assigned To: marc_culler
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-06-07 19:44:59
Resolution: Fixed Closed By: marc_culler
    Closed on: 2019-06-07 19:44:59
Description:
This can be seen in the widget demo.  When the demo first begins, the hyperlink
which changes color in response to an <Enter> event is several lines above the
mouse cursor.  After the demo has been running for a few seconds, or if the
mouse button is pressed in the demo window, the coordinates reported in the
event begin to match the actual mouse position and the demo behaves as expected.
Once the coordinates become synchronized they do not go out of sync again.
User Comments: marc_culler (claiming to be Marc Culler) added on 2019-06-05 19:20:08:

@chrstphrchvz: Thanks for testing!!

I will go ahead and merge 6ebb742a.


chrstphrchvz added on 2019-06-05 12:02:54:

And yes, [6ebb742a] fixes the issue for me as well.


chrstphrchvz added on 2019-06-05 11:46:49:

I had encountered this issue, but hadn't yet gotten around to reporting it. I had found an alternative way of triggering the issue: in the widget demo, open one of the demos, then move that demo's window so that the Dismiss button can be clicked with the mouse cursor not positioned over the main window of the widget demo. Once the Dismiss button is pressed, the highlighted links in will be offset from mouse cursor as you described.


marc_culler (claiming to be Marc Culler) added on 2019-06-03 19:16:03:

This problem is fixed in commit 6ebb742a59 which reworks and simplifies the code in tkMacOSXMouseEvent.c that handles mouse events.