diff options
author | Felipe Heidrich <fheidric> | 2010-12-21 18:05:14 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2010-12-21 18:05:14 +0000 |
commit | 31b7e14bceda4eac6e74ea4bd2865b1d0782034c (patch) | |
tree | 184bdb394611b63fe3207ce42e39b7146ffd6b57 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | |
parent | 7c255c33f088ef04ac6271863f814fd0cde593d4 (diff) | |
download | eclipse.platform.swt-31b7e14bceda4eac6e74ea4bd2865b1d0782034c.tar.gz eclipse.platform.swt-31b7e14bceda4eac6e74ea4bd2865b1d0782034c.tar.xz eclipse.platform.swt-31b7e14bceda4eac6e74ea4bd2865b1d0782034c.zip |
refactoring
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index 518acd9763..241d4c19c4 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -4443,18 +4443,16 @@ LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) { } LRESULT WM_GESTURE (int /*long*/ wParam, int /*long*/ lParam) { - boolean handled = false; - - if (hooks (SWT.Gesture)) { + if (hooks (SWT.Gesture) || filters (SWT.Gesture)) { GESTUREINFO gi = new GESTUREINFO (); gi.cbSize = GESTUREINFO.sizeof; if (OS.GetGestureInfo (lParam, gi)) { - handled = sendGestureEvent (gi); + boolean result = sendGestureEvent (gi); + OS.CloseGestureInfoHandle (lParam); + if (result) return LRESULT.ZERO; } - OS.CloseGestureInfoHandle (lParam); } - - return (handled ? LRESULT.ZERO : null); + return null; } LRESULT WM_GETDLGCODE (int /*long*/ wParam, int /*long*/ lParam) { |