Community
Participate
Working Groups
As reported in bug #331993 updating the mouse location via Display#setCursorLocation(Point) or by issuing a SWT.MouseMove event via Display#post(Event) seems to cause an invalid MouseHover event on MacOSX Cocoa.
Created attachment 184763 [details] test case Slightly modified version of the original test case from bug 331993.
Created attachment 184765 [details] Fix This was never really correct. We were getting the current event and getting the mouse location from that but there's no guarantee that the current event will have a valid mouse location.
This will have to wait for post-M4.
Fixed > 20101213.
Reopening, because using Eclipse 3.7 N20101213-2000, the provided test case still delivers the following result: Event occured: Event {type=5 Canvas {} time=4027199 data=null x=50 y=50 width=0 height=0 detail=0} Event occured: Event {type=32 Canvas {} time=4027250 data=null x=0 y=-22 width=0 height=0 detail=0} That is, the mouse hover returns an invalid location. Also, the broken GEF accessibility mechanism that was the cause for reporting this defect (bug #242481) is not working with N20101213-2000 either.
(In reply to comment #5) > Reopening, because using Eclipse 3.7 N20101213-2000, the provided test case > still delivers the following result: My checkin for this fix was at 5:10 p.m. Pacific, which means it came in after this build. Try again with the 12/14 build or later. (Technically I did say 'later than 20101213.')
Well, sorry for that (I overlooked the >). Verified that with N20101214, the problem does no longer occur.