diff options
author | Felipe Heidrich | 2007-02-12 22:25:31 +0000 |
---|---|---|
committer | Felipe Heidrich | 2007-02-12 22:25:31 +0000 |
commit | bd335e1bbc287472dc24a7618b87762336cc62c6 (patch) | |
tree | 62c3ae81b982b6cd6417776c01f6b97e61776974 | |
parent | e4dae27ad5ce01f34403930d297ad3a896397f8b (diff) | |
download | eclipse.platform.swt-3326.tar.gz eclipse.platform.swt-3326.tar.xz eclipse.platform.swt-3326.zip |
*** empty log message ***v3326
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java index bd4f4c45a7..7b41f5555b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Control.java @@ -1014,12 +1014,11 @@ void hookEvents () { void HandleContextMenuOpening (int sender, int e) { if (!checkEvent (e)) return; int mouse = OS.Mouse_GetPosition (handle); - int mouse2 = OS.Visual_PointToScreen (handle, mouse); - int x = (int) OS.Point_X (mouse2); - int y = (int) OS.Point_Y (mouse2); + int x = (int) OS.Point_X (mouse); + int y = (int) OS.Point_Y (mouse); OS.GCHandle_Free (mouse); - OS.GCHandle_Free (mouse2); - showMenu (x, y); + Point point = display.map (this, null, x, y); + showMenu (point.x, point.y); OS.RoutedEventArgs_Handled (e, true); } |