Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 94502

Summary: Redundant check for the pointer coordinates
Product: [Eclipse Project] Platform Reporter: Billy Biggs <billy.biggs>
Component: SWTAssignee: Billy Biggs <billy.biggs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 3.1   
Target Milestone: 3.2 M1   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Billy Biggs CLA 2005-05-10 16:03:20 EDT
In Control#gtk_motion_notify, gdk_window_get_pointer() is used to get the
coordinates relative to the root window.  However, Control#sendMouseEvent maps
these back into widget-relative coordinates.

It would be more efficient and straightforward to simply request the mouse
position relative to the target window in the first place.  The attached patch
solves this.
Comment 1 Billy Biggs CLA 2005-05-10 16:03:41 EDT
Created attachment 20907 [details]
Patch
Comment 2 Billy Biggs CLA 2005-06-28 14:36:30 EDT
Fixed > 20050628