diff options
author | Felipe Heidrich | 2005-09-12 18:46:04 +0000 |
---|---|---|
committer | Felipe Heidrich | 2005-09-12 18:46:04 +0000 |
commit | 901d4706b29b0ae0ed3bc318981acdba8aada501 (patch) | |
tree | 38834ff624b53e4dbb872fef248e132ebc8e63c1 /tests/org.eclipse.swt.tests/JUnit Tests | |
parent | 2c067f354bb1f7c2ce1a628c5da3c9c0b1b385e6 (diff) | |
download | eclipse.platform.swt-901d4706b29b0ae0ed3bc318981acdba8aada501.tar.gz eclipse.platform.swt-901d4706b29b0ae0ed3bc318981acdba8aada501.tar.xz eclipse.platform.swt-901d4706b29b0ae0ed3bc318981acdba8aada501.zip |
On Mac OS X 10.4.2, posting events at (0,0) sends the events to the menu bar
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java index 42fdd594de..9de4a82173 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java @@ -740,8 +740,9 @@ public void test_postLorg_eclipse_swt_widgets_Event() { // Test mouse events (down/up/move) event = new Event(); event.type = SWT.MouseMove; - event.x = 0; - event.y = 0; + Rectangle bounds = shell.getBounds(); + event.x = bounds.x + bounds.width/2; + event.y = bounds.y + bounds.height/2; shell.setFocus(); assertTrue(display.post(event)); |