javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Composite.java
--- a/javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Composite.java Tue Jul 06 14:10:26 2010 +0300
+++ b/javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Composite.java Wed Aug 18 09:43:15 2010 +0300
@@ -200,16 +200,9 @@
boolean doHandleMouseEvent(int type, int widgetHandle, int button, int x, int y, int state, int buttons) {
boolean cancel = super.doHandleMouseEvent(type, widgetHandle, button, x, y, state, buttons);
+ // From the CANVAS flag it's known if this is a Shell/stand-alone Composite/Canvas.
if((this.state & WidgetState.CANVAS) != 0) {
- // From the CANVAS flag it's known if this is a Shell/stand-alone
- // Composite/Canvas. Those don't process the native mouse event but let it
- // through to the widget below. If the widget below also passes the event
- // to this Java widget then it will be getting multiple events. To avoid this
- // the native event must be canceled.
- // Note: Also WA_NoMousePropagation could be used for this.
- cancel = true;
-
- // Set focus for a canvas with no children
+ // Set focus for a Canvas with no children.
if(type == SWT.MouseDown) {
if ((style & SWT.NO_FOCUS) == 0 && hooksKeys ()) {
Control[] children = getChildren();